Permalink
Fetching contributors…
Cannot retrieve contributors at this time
74 lines (73 sloc) 2.16 KB
bioguide: V000129
contact_form:
method: get
action: /forms/writeyourrep
steps:
- visit: "http://valadao.house.gov/contact/"
- fill_in:
- name: zip5
selector: "form.zipform input[name='zip5']"
value: $ADDRESS_ZIP5
required: true
- click_on:
- value: Submit
selector: "form.zipform input[type='submit'][value='Submit']"
- find:
- selector: "#ctl00_ctl15_PrefixList"
- fill_in:
- name: ctl00$ctl15$FirstName
selector: "#ctl00_ctl15_FirstName"
value: $NAME_FIRST
required: true
- name: ctl00$ctl15$LastName
selector: "#ctl00_ctl15_LastName"
value: $NAME_LAST
required: true
- name: ctl00$ctl15$Street
selector: "#ctl00_ctl15_Street"
value: $ADDRESS_STREET
required: true
- name: ctl00$ctl15$City
selector: "#ctl00_ctl15_City"
value: $ADDRESS_CITY
required: true
- name: ctl00$ctl15$Phone
selector: "#ctl00_ctl15_Phone"
value: $PHONE
required: true
- name: ctl00$ctl15$Email
selector: "#ctl00_ctl15_Email"
value: $EMAIL
required: true
- name: ctl00$ctl15$Subject
selector: "#ctl00_ctl15_Subject"
value: $SUBJECT
required: true
- name: ctl00$ctl15$Body
selector: "#ctl00_ctl15_Body"
value: $MESSAGE
required: true
- select:
- name: ctl00$ctl15$PrefixList
selector: "#ctl00_ctl15_PrefixList"
value: $NAME_PREFIX
required: true
options:
- Mr.
- Mrs.
- Ms.
- Miss
- Dr.
- Mr. and Mrs.
- javascript:
- value: document.querySelector("#ctl00_ctl15_Body").value = document.querySelector("#ctl00_ctl15_Body").value.replace(/"/g, '');
- click_on:
- value: Submit
selector: "#ctl00_ctl15_SubmitButton"
- find:
- selector: "#ctl00_ctl15_ConfirmationText"
success:
headers:
status: 200
body:
contains: Thank you for taking the time to contact me.