Permalink
Fetching contributors…
Cannot retrieve contributors at this time
119 lines (118 sloc) 3.99 KB
bioguide: E000215
contact_form:
method: post
action: "/htbin/formproc.pl?/eshoo/wp-content/themes/Eshoo/formfiles/contact.txt&display=/eshoo/wp-content/themes/Eshoo/formfiles/redirect.html&nobase&fpGetVer=2"
steps:
- visit: "http://eshoo.house.gov/contact/"
- fill_in:
- name: salutation
selector: "#atform input[name='salutation']"
value: $NAME_PREFIX
required: true
- name: first_name
selector: "#atform input[name='first_name']"
value: $NAME_FIRST
required: true
- name: last_name
selector: "#atform input[name='last_name']"
value: $NAME_LAST
required: true
- name: street_address
selector: "#atform input[name='street_address']"
value: $ADDRESS_STREET
required: true
- name: street_address2
selector: "#atform input[name='street_address2']"
value: $ADDRESS_STREET_2
required: false
- name: city
selector: "#atform input[name='city']"
value: $ADDRESS_CITY
required: true
- name: zip_code
selector: "#atform input[name='zip_code']"
value: $ADDRESS_ZIP5
required: true
- name: primary_phone
selector: "#atform input[name='primary_phone']"
value: $PHONE
required: true
- name: email
selector: "#email"
value: $EMAIL
required: true
- name: verify_email
selector: "#atform input[name='verify_email']"
value: $EMAIL
required: true
- name: con_message
selector: "#atform textarea[name='con_message']"
value: $MESSAGE
required: true
- select:
- name: con_issue
selector: "#atform select[name='con_issue']"
value: $TOPIC
required: true
options:
Agriculture: AGRICULTURE
Animals: ANIMALS
Appointments: APPOINTMENTS
Appropriations: APPROPRIATIONS
Banking: BANKING
Budget: BUDGET
Children: CHILDREN
Civil Rights: CIVILRIGHTS
Civil Service: CIVILSERVICE
Congress: CONGRESS
Crime/Gun Control: CRIME
Economy: ECONOMY
Defense/War: DEFENSE
Drugs: DRUGS
Education: EDUCATION
Elections/Voting: ELECTIONS
Energy: ENERGY
Environment: ENVIRONMENT
Foreign Affairs: FOREIGNAFFAIRS
Gay/Lesbian Issues: GAYS
Health: HEALTH
Housing: HOUSING
Immigration: IMMIGRATION
Judiciary: JUDICIARY
Jobs: JOBS
Labor: LABOR
Medicaid/Medicare: MEDICAID
Military/Armed Services: MILITARY
Native Americans: NATIVE AMERICANS
Passports: PASSPORTS
Politics: POLITICS
Post Office: POSTOFFICE
Poverty: POVERTY
The President: PRESIDENT
Science: SCIENCE
Small Business: SMALLBUSINESS
Social Security: SOCIALSECURITY
Space/NASA: SPACE
Taxation: TAX
Technology: TECHNOLOGY
Telecommunications: TELECOM
Telephone Town Hall: TELEPHONE TOWN HALL
Terrorism: TERRORISM
Trade/Commerce: TRADE
Transportation: TRANSPORTATION
Veterans Affairs: VETERANS
Welfare/Poverty: WELFARE
"Women's Issues": WOMEN
Miscellaneous/Other: MISCELLANEOUS
- javascript:
- value: document.querySelector("#atform textarea[name='con_message']").value = document.querySelector("#atform textarea[name='con_message']").value.replace(/"/g, '').replace(/;/g, ',');
- recaptcha:
- value: true
- click_on:
- value: Submit
selector: "#atform input[type='submit'][value='Submit']"
success:
headers:
status: 200
body:
contains: Thank you