Permalink
Fetching contributors…
Cannot retrieve contributors at this time
85 lines (84 sloc) 2.5 KB
bioguide: S001193
contact_form:
method: get
action: /forms/writeyourrep/
steps:
- visit: "http://swalwellforms.house.gov/contact/"
- fill_in:
- name: zip5
selector: "form.zipform input[name='zip5']"
value: $ADDRESS_ZIP5
required: true
- name: zip4
selector: "form.zipform input[name='zip4']"
value: $ADDRESS_ZIP4
required: true
- click_on:
- value: Submit
selector: "form.zipform input[type='submit'][value='Submit']"
- find:
- selector: "#ctl00_ctl34_FirstName"
- fill_in:
- name: ctl00$ctl34$FirstName
selector: "#ctl00_ctl34_FirstName"
value: $NAME_FIRST
required: true
- name: ctl00$ctl34$LastName
selector: "#ctl00_ctl34_LastName"
value: $NAME_LAST
required: true
- name: ctl00$ctl34$Street
selector: "#ctl00_ctl34_Street"
value: $ADDRESS_STREET
required: true
- name: ctl00$ctl34$City
selector: "#ctl00_ctl34_City"
value: $ADDRESS_CITY
required: true
- name: ctl00$ctl34$Zip
selector: "#ctl00_ctl34_Zip"
value: $ADDRESS_ZIP5
required: true
- name: ctl00$ctl34$Phone
selector: "#ctl00_ctl34_Phone"
value: $PHONE
required: true
- name: ctl00$ctl34$Email
selector: "#ctl00_ctl34_Email"
value: $EMAIL
required: true
- name: ctl00$ctl34$Subject
selector: "#ctl00_ctl34_Subject"
value: $SUBJECT
required: true
- name: ctl00$ctl34$Body
selector: "#ctl00_ctl34_Body"
value: $MESSAGE
required: true
- select:
- name: ctl00$ctl34$PrefixList
selector: "#ctl00_ctl34_PrefixList"
value: $NAME_PREFIX
required: true
options:
- Mr.
- Mrs.
- Ms.
- check:
- name: ctl00$ctl34$ReplyChoice
selector: "#ctl00_ctl34_ReplyChoice_0"
value: Respond
- javascript:
- value: document.querySelector("#ctl00_ctl34_Body").value = document.querySelector("#ctl00_ctl34_Body").value.replace(/"/g, '');
- recaptcha:
- value: true
- click_on:
- value: Submit
selector: "#ctl00_ctl34_SubmitButton"
- find:
- selector: "#ctl00_ctl34_ConfirmationText"
success:
headers:
status: 200
body:
contains: Thank you for your message.