Permalink
Fetching contributors…
Cannot retrieve contributors at this time
66 lines (66 sloc) 1.9 KB
bioguide: B001287
contact_form:
method: post
action: ""
steps:
- visit: "https://beraforms.house.gov/forms/writeyourrep/"
- fill_in:
- name: ctl00$ctl09$FirstName
selector: "#ctl00_ctl09_FirstName"
value: $NAME_FIRST
required: true
- name: ctl00$ctl09$LastName
selector: "#ctl00_ctl09_LastName"
value: $NAME_LAST
required: true
- name: ctl00$ctl09$Street
selector: "#ctl00_ctl09_Street"
value: $ADDRESS_STREET
required: true
- name: ctl00$ctl09$City
selector: "#ctl00_ctl09_City"
value: $ADDRESS_CITY
required: true
- name: ctl00$ctl09$Zip
selector: "#ctl00_ctl09_Zip"
value: $ADDRESS_ZIP5
required: true
- name: ctl00$ctl09$Email
selector: "#ctl00_ctl09_Email"
value: $EMAIL
required: true
- name: ctl00$ctl09$Subject
selector: "#ctl00_ctl09_Subject"
value: $SUBJECT
required: true
- name: ctl00$ctl09$Body
selector: "#ctl00_ctl09_Body"
value: $MESSAGE
required: true
- select:
- name: ctl00$ctl09$PrefixList
selector: "#ctl00_ctl09_PrefixList"
value: $NAME_PREFIX
required: true
options:
- Mr.
- Mrs.
- Dr.
- Ms.
- The Honorable
- check:
- name: ctl00$ctl09$ReplyChoice
selector: "#ctl00_ctl09_ReplyChoice_0"
value: Respond
- javascript:
- value: document.querySelector("#ctl00_ctl09_Body").value = document.querySelector("#ctl00_ctl09_Body").value.replace(/"/g, '');
- recaptcha:
- value: true
- click_on:
- value: Submit
selector: "#ctl00_ctl09_SubmitButton"
success:
headers:
status: 200
body:
contains: thank you