-
Notifications
You must be signed in to change notification settings - Fork 211
/
G000555.yaml
159 lines (159 loc) · 4.4 KB
/
G000555.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
bioguide: G000555
contact_form:
method: post
action: https://www.gillibrand.senate.gov/contact/email-me
steps:
- visit: "https://www.gillibrand.senate.gov/contact/email-me"
- javascript:
- value: "Array.prototype.forEach.call(document.querySelectorAll('style,[rel=\"stylesheet\"],[type=\"text/css\"]'), function(element){ try{ element.parentNode.removeChild(element) } catch(err){} });"
- javascript:
- value: "document.querySelector('#gform_wrapper_3').style.display = 'block'"
- find:
- selector: "#input_3_1"
- fill_in:
- name: input_1
selector: "#input_3_1"
value: $NAME_FIRST
required: true
- name: input_3
selector: "#input_3_3"
value: $NAME_LAST
required: true
- name: input_5
selector: "#input_3_5"
value: $ADDRESS_STREET
required: true
- name: input_7
selector: "#input_3_7"
value: $ADDRESS_CITY
required: true
- name: input_9
selector: "#input_3_9"
value: $ADDRESS_ZIP5
required: true
- name: input_10
selector: "#input_3_10"
value: $PHONE
required: true
- name: input_31
selector: "#input_3_31"
value: $EMAIL
required: true
- name: input_23
selector: "#input_3_23"
value: $MESSAGE
required: true
- select:
- name: "input_4"
selector: "select[name='input_4']"
value: $NAME_PREFIX
required: true
options:
Mr.: Mr.
Ms.: Ms.
Mrs.: Mrs.
Mx.: Mx.
X.: X.
Dr.: Dr.
- name: "input_20"
selector: "select[name='input_20']"
value: $TOPIC
required: true
options:
Agriculture/Nutrition: AGRINUT
Animals Issues: ANI
Arts & Humanities: ART
Banking/Finance: BANKFIN
Campaign/Election Reform: CAMPAIGN FINANCE
Children: CHILDREN
Civil/LGBT Rights: CIVILRIGHTS
Defense/Military: DEF
Economy: ECON
Education: EDU
Energy: Energy
Environment: ENV
Foreign Relations/International Affairs: FOREIGN RELATIONS
Government Reform: GOV
Gun Control: GUN CONTROL
Health/Healthcare: HEA
Homeland Security: HOM
Housing: HOUSING
Immigration: IMM
Judiciary: JUD
Labor & Pensions: LABOR
Medicare/Medicaid: MEDICARE
Science/Technology/Telecommunications: SCITECTEL
Social Security: SOCIAL SECURITY
Taxes: TAX
Trade: TRADE
Transportation: TRANSPORTATION
Veterans: VETERANS
Welfare: WELFARE
Women's Issues: WOMEN
- name: "input_32"
selector: "select[name='input_32']"
value: $ADDRESS_STATE_POSTAL_ABBREV
required: true
options:
AL: AL
AK: AK
AR: AR
AZ: AZ
CA: CA
CO: CO
CT: CT
DC: DC
DE: DE
FL: FL
GA: GA
HI: HI
ID: ID
IL: IL
IN: IN
IA: IA
KS: KS
KY: KY
LA: LA
ME: ME
MD: MD
MA: MA
MI: MI
MN: MN
MS: MS
MO: MO
MT: MT
NC: NC
ND: ND
NE: NE
NV: NV
NH: NH
NJ: NJ
NM: NM
NY: NY
OH: OH
OK: OK
OR: OR
PA: PA
RI: RI
SC: SC
SD: SD
TN: TN
TX: TX
UT: UT
VT: VT
VA: VA
WA: WA
WV: WV
WI: WI
WY: WY
- javascript:
- value: document.querySelector("#input_3_23").value = document.querySelector("#input_3_23").value.replace(/"/g, '');
- click_on:
- selector: "#gform_submit_button_3"
- wait:
- value: 3
success:
headers:
status: 200
body:
contains: Your Email Has Been Received