Permalink
Fetching contributors…
Cannot retrieve contributors at this time
80 lines (79 sloc) 2.92 KB
bioguide: R000395
contact_form:
method: post
action: /submit-contact.aspx
steps:
- visit: "https://halrogers.house.gov/contact/contactform.htm"
- fill_in:
- name: required-first
selector: "form.contactForm.zipform[name='contact'] input[name='required-first']"
value: $NAME_FIRST
required: true
- name: required-last
selector: "form.contactForm.zipform[name='contact'] input[name='required-last']"
value: $NAME_LAST
required: true
- name: required-address
selector: "form.contactForm.zipform[name='contact'] input[name='required-address']"
value: $ADDRESS_STREET
required: true
- name: required-city
selector: "form.contactForm.zipform[name='contact'] input[name='required-city']"
value: $ADDRESS_CITY
required: true
- name: zip5
selector: "form.contactForm.zipform[name='contact'] input[name='zip5']"
value: $ADDRESS_ZIP5
required: true
- name: phone
selector: "form.contactForm.zipform[name='contact'] input[name='phone']"
value: $PHONE
required: true
- name: required-email
selector: "form.contactForm.zipform[name='contact'] input[name='required-email']"
value: $EMAIL
required: true
- name: required-message
selector: "form.contactForm.zipform[name='contact'] textarea[name='required-message']"
value: $MESSAGE
required: true
- select:
- name: required-prefix
selector: "form.contactForm.zipform[name='contact'] select[name='required-prefix']"
value: $NAME_PREFIX
required: true
options:
Mr.: Mr.
Mrs.: Mrs.
Miss: Miss.
Ms.: Ms.
Mr. and Mrs.: Mr. and Mrs.
Dr.: Dr.
Rev.: Rev.
- name: required-issue
selector: "form.contactForm.zipform[name='contact'] select[name='required-issue']"
value: $TOPIC
required: true
options:
Economy/Jobs: ECON
Education: ED
Health: HE
Illegal Drugs: CRIME.DRUG
Social Security: SS
Taxes: TAX
Transportation: TRAN
Border Security: DHS
Budget: BUD
Other: OTHER
- javascript:
- value: document.querySelector("form.contactForm.zipform[name='contact'] textarea[name='required-message']").value = document.querySelector("form.contactForm.zipform[name='contact'] textarea[name='required-message']").value.replace(/"/g, '');
- click_on:
- value: Send Email
selector: "form.contactForm.zipform[name='contact'] input[type='submit'][value='Send Email']"
- find:
- selector: "#ctl00_ctl09_ctl00_Text"
success:
headers:
status: 200
body:
contains: Thank you for contacting me