-
Notifications
You must be signed in to change notification settings - Fork 212
/
Copy pathC001051.yaml
107 lines (107 loc) · 3.1 KB
/
C001051.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
bioguide: C001051
contact_form:
method: post
action: /email-john2/
steps:
- visit: "https://carter.house.gov/email-john2"
- fill_in:
- name: zipcode
selector: "#zipcode"
value: $ADDRESS_ZIP5
required: true
- name: zipfour
selector: "#zipfour"
value: $ADDRESS_ZIP4
required: true
- click_on:
- value: Go to Form
selector: input.button
- fill_in:
- name: prefix
selector: "#custom_form41 input[name='prefix']"
value: $NAME_PREFIX
required: false
- 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_form41 input[name='street2']"
value: $ADDRESS_STREET_2
required: false
- name: city
selector: "#req_city"
value: $ADDRESS_CITY
required: true
- name: zipcode
selector: "#req_zipcode"
value: $ADDRESS_ZIP5
required: true
- name: emailaddress
selector: "#req_email"
value: $EMAIL
required: true
- name: phone
selector: "#fnum"
value: $PHONE
required: false
- name: message
selector: "#message"
value: $MESSAGE
required: true
- select:
- name: subject
selector: "#req_subject"
value: $TOPIC
required: true
options:
2nd Amendment Issues: 2ND-AME
Agriculture: AGRI
Animal Rights: ANML
Arts and Humanities: ARTS
Budget: BUD
Corps of Engineers: CORPS-ENG
Defense and Military: DEF
Education: EDU
Energy: ENR
Environment: ENV
"Foreign Affairs ": FAFF
Government Reform: GOV
Health: HLTH
Homeland Security: HOMELANDSECURITY
Housing: HOUS
Immigration: IMM
Labor: LAB
Traditional Marriage Issues: MARR-ISSUES
Pro-Life Issues: PROLIFE-ISSUES
Property Rights: PROP
Regulatory Reform: REG-REF
Science and Technology: SCI
Small Business: SMBUS
Social Security: SOC
Taxes and Trade: TAX
Transportation: TRANS
Veterans Affairs: VET
Women’s Issues: WOM
Other Issues: OTH
- javascript:
- value: document.querySelector("#message").value = document.querySelector("#message").value.replace(/"/g, '');
- click_on:
- value: Submit
selector: "#submitButton"
- find:
- selector: "h1"
value: "THANK YOU"
success:
headers:
status: 200
body:
contains: "Thank you for sending us an email, we will be in touch shortly."