Permalink
Fetching contributors…
Cannot retrieve contributors at this time
90 lines (90 sloc) 3.05 KB
bioguide: R000582
contact_form:
method: get
action: /Contact/ContactForm.htm
steps:
- visit: "http://roe.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: "form[name='contact'] input[name='required-first']"
- fill_in:
- name: required-first
selector: "form[name='contact'] input[name='required-first']"
value: $NAME_FIRST
required: true
- name: required-last
selector: "form[name='contact'] input[name='required-last']"
value: $NAME_LAST
required: true
- name: required-address
selector: "form[name='contact'] input[name='required-address']"
value: $ADDRESS_STREET
required: true
- name: required-city
selector: "form[name='contact'] input[name='required-city']"
value: $ADDRESS_CITY
required: true
- name: zip5
selector: "form[name='contact'] input[name='zip5']"
value: $ADDRESS_ZIP5
required: true
- name: zip4
selector: "form[name='contact'] input[name='zip4']"
value: $ADDRESS_ZIP4
required: true
- name: phone
selector: "form[name='contact'] input[name='phone']"
value: $PHONE
required: true
- name: required-email
selector: "form[name='contact'] input[name='required-email']"
value: $EMAIL
required: true
- name: required-message
selector: "form[name='contact'] textarea[name='required-message']"
value: $MESSAGE
required: true
- select:
- name: required-prefix
selector: "form[name='contact'] select[name='required-prefix']"
value: $NAME_PREFIX
required: true
options:
- Mr.
- Mrs.
- Dr.
- Ms.
- name: required-issue
selector: "form[name='contact'] select[name='required-issue']"
value: OPINION
required: true
options:
Share Your Opinion: OPINION
Help with a Federal Agency: CASEWORK
Tour Request: MEETING REQUEST
Schedule a Meeting: TOUR REQUEST
- javascript:
- value: document.querySelector("form[name='contact'] textarea[name='required-message']").value = document.querySelector("form[name='contact'] textarea[name='required-message']").value.replace(/"/g, '');
- click_on:
- value: Send Email
selector: "form[name='contact'] input[type='submit'][value='Send Email']"
- wait:
- value: 1
- find:
- selector: "#ctl00_ctl12_ctl00_Text"
success:
headers:
status: 200
body:
contains: Thank you