-
Notifications
You must be signed in to change notification settings - Fork 211
/
L000576.yaml
95 lines (95 loc) · 2.77 KB
/
L000576.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
bioguide: L000576
contact_form:
method: post
action: /email-billy/
steps:
- visit: "https://longforms.house.gov/email-billy"
- fill_in:
- name: firstname
selector: "#req_firstname"
value: $NAME_FIRST
required: true
- name: lastname
selector: "#req_lastname"
value: $NAME_LAST
required: true
- name: street
selector: "#req_street"
value: $ADDRESS_STREET
required: true
- name: street2
selector: "#custom_form6 input[name='street2']"
value: $ADDRESS_STREET_2
required: false
- name: city
selector: "#req_city"
value: $ADDRESS_CITY
required: true
- name: zipcode
selector: "#req_zip"
value: $ADDRESS_ZIP5
required: true
- name: zipfour
selector: "#zip2"
value: $ADDRESS_ZIP4
required: true
- name: emailaddress
selector: "#req_email"
value: $EMAIL
required: true
- name: phone
selector: "#custom_form6 input[name='phone']"
value: $PHONE
required: true
- name: message
selector: "#req_message"
value: $MESSAGE
required: true
- select:
- name: subject
selector: "#req_subject"
value: $TOPIC
required: true
options:
Constituent Service: WEBCST
Grant Requests: WEBGRT
Agriculture: WEBAGR
Budget: WEBBUD
Defense: WEBDEF
Education/Labor: WEBEDU
Energy: WEBENE
Environment: WEBENV
International: WEBINT
Government Reform: WEBGOV
Health Care: WEBHEA
Homeland Security: WEBHOM
Immigration: WEBIMM
Judiciary: WEBJUD
Social Issues: WEBSOC
Social Security: WEBSSEC
Telecommunications: WEBTEL
Taxes and Trade: WEBTAX
Transportation: WEBTRA
Veterans: WEBVET
Welfare: WEBWEL
Other: WEBOTH
- name: response
selector: "#req_response"
value: "Y"
required: true
options:
I do not need a response.: "N"
I would like a response.: "Y"
- javascript:
- value: document.querySelector("#req_message").value = document.querySelector("#req_message").value.replace(/"/g, '');
- javascript:
- value: "document.querySelector('form#custom_form6').submit();"
- wait:
- value: 3
- find:
- selector: "#centerbox > p:nth-child(2)"
success:
headers:
status: 200
body:
contains: Thank you for submitting your information.