mirror of
https://github.com/unitedstates/contact-congress.git
synced 2025-12-19 09:27:29 -05:00
124 lines
4.2 KiB
YAML
124 lines
4.2 KiB
YAML
bioguide: M001196
|
|
contact_form:
|
|
method: post
|
|
action: "/htbin/formproc.pl?/moulton/wp-content/themes/Moulton/formfiles/contact.txt&display=/moulton/wp-content/themes/Moulton/formfiles/redirect.html&nobase&fpGetVer=2"
|
|
steps:
|
|
- visit: "http://moulton.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: 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
|
|
- name: con_respond
|
|
selector: "#atform select[name='con_respond']"
|
|
value: "yes"
|
|
required: false
|
|
options:
|
|
"Yes, Please Contact Me": "yes"
|
|
"No, I wanted to voice my opinion": "no"
|
|
- javascript:
|
|
- value: document.querySelector("#atform textarea[name='con_message']").value = document.querySelector("#atform textarea[name='con_message']").value.replace(/"/g, '');
|
|
- recaptcha:
|
|
- value: true
|
|
- click_on:
|
|
- value: Submit
|
|
selector: "#atform input[type='submit'][value='Submit']"
|
|
- find:
|
|
- value: "Form Confirmation"
|
|
selector: "h1"
|
|
success:
|
|
headers:
|
|
status: 200
|
|
body:
|
|
contains: Form Confirmation |