mirror of
https://github.com/unitedstates/contact-congress.git
synced 2025-12-19 09:27:29 -05:00
163 lines
5.0 KiB
YAML
163 lines
5.0 KiB
YAML
bioguide: C001056
|
|
contact_form:
|
|
method: post
|
|
action: /contact
|
|
steps:
|
|
- visit: "http://www.cornyn.senate.gov/contact"
|
|
- check:
|
|
- name: "submitted[please_select_one]"
|
|
selector: "#edit-submitted-please-select-one-1"
|
|
value: contact_discuss
|
|
- wait:
|
|
- value: 1
|
|
- select:
|
|
- name: "submitted[issue]"
|
|
selector: "#edit-submitted-issue"
|
|
value: $TOPIC
|
|
required: true
|
|
options:
|
|
Abortion: abortion
|
|
Agriculture: agriculture
|
|
Arts and Humanities: arts_and_humanities
|
|
Banking: banking
|
|
Budget: budget
|
|
Communications: communications
|
|
Crime/Law Enforcement: law_enforcement
|
|
Defense: defense
|
|
Education: education
|
|
Election Reform: election_reform
|
|
Energy: energy
|
|
Environment: environment
|
|
Finance: finance
|
|
Firearms: firearms
|
|
Foreign Affairs: foreign_affairs
|
|
Government Operations/Affairs: government_operations/Affairs
|
|
Health Care: health_care
|
|
Homeland Security: homeland_security
|
|
Housing: housing
|
|
Immigration: immigration
|
|
Interior: interior
|
|
Judiciary: judiciary
|
|
Labor: labor
|
|
Medicare: medicare
|
|
Picture Request: picture_request
|
|
Religion: religion
|
|
Service Academies: service_academies
|
|
Small Business: small_business
|
|
Social Security: social_security
|
|
Taxes/Economy: taxes
|
|
Tour Request: tour Request
|
|
Trade: trade
|
|
Transportation: transportation
|
|
Veterans: veterans
|
|
Welfare: welfare
|
|
- name: "submitted[state]"
|
|
selector: "#edit-submitted-state"
|
|
value: $ADDRESS_STATE_POSTAL_ABBREV
|
|
required: true
|
|
options:
|
|
Alabama: AL
|
|
Alaska: AK
|
|
American Samoa: AS
|
|
Arizona: AZ
|
|
Arkansas: AR
|
|
California: CA
|
|
Colorado: CO
|
|
Connecticut: CT
|
|
Delaware: DE
|
|
District of Columbia: DC
|
|
Florida: FL
|
|
Georgia: GA
|
|
Guam: GU
|
|
Hawaii: HI
|
|
Idaho: ID
|
|
Illinois: IL
|
|
Indiana: IN
|
|
Iowa: IA
|
|
Kansas: KS
|
|
Kentucky: KY
|
|
Louisiana: LA
|
|
Maine: ME
|
|
Marshall Islands: MH
|
|
Maryland: MD
|
|
Massachusetts: MA
|
|
Michigan: MI
|
|
Minnesota: MN
|
|
Mississippi: MS
|
|
Missouri: MO
|
|
Montana: MT
|
|
Nebraska: NE
|
|
Nevada: NV
|
|
New Hampshire: NH
|
|
New Jersey: NJ
|
|
New Mexico: NM
|
|
New York: NY
|
|
North Carolina: NC
|
|
North Dakota: ND
|
|
Northern Marianas Islands: MP
|
|
Ohio: OH
|
|
Oklahoma: OK
|
|
Oregon: OR
|
|
Palau: PW
|
|
Pennsylvania: PA
|
|
Puerto Rico: PR
|
|
Rhode Island: RI
|
|
South Carolina: SC
|
|
South Dakota: SD
|
|
Tennessee: TN
|
|
Texas: TX
|
|
Utah: UT
|
|
Vermont: VT
|
|
Virgin Islands: VI
|
|
Virginia: VA
|
|
Washington: WA
|
|
West Virginia: WV
|
|
Wisconsin: WI
|
|
Wyoming: WY
|
|
- fill_in:
|
|
- name: "submitted[prefix_optional]"
|
|
selector: "#edit-submitted-prefix-optional"
|
|
value: $NAME_PREFIX
|
|
required: false
|
|
- name: "submitted[first_name]"
|
|
selector: "#edit-submitted-first-name"
|
|
value: $NAME_FIRST
|
|
required: true
|
|
- name: "submitted[last_name]"
|
|
selector: "#edit-submitted-last-name"
|
|
value: $NAME_LAST
|
|
required: true
|
|
- name: "submitted[message]"
|
|
selector: "#edit-submitted-message"
|
|
value: $MESSAGE
|
|
required: true
|
|
- name: "submitted[address_1]"
|
|
selector: "#edit-submitted-address-1"
|
|
value: $ADDRESS_STREET
|
|
required: true
|
|
- name: "submitted[city]"
|
|
selector: "#edit-submitted-city"
|
|
value: $ADDRESS_CITY
|
|
required: true
|
|
- name: "submitted[zip_code]"
|
|
selector: "#edit-submitted-zip-code"
|
|
value: $ADDRESS_ZIP5
|
|
required: true
|
|
- name: "submitted[phone_number_optional]"
|
|
selector: "#edit-submitted-phone-number-optional"
|
|
value: $PHONE
|
|
required: false
|
|
- name: "submitted[email_address]"
|
|
selector: "#edit-submitted-email-address"
|
|
value: $EMAIL
|
|
required: true
|
|
- javascript:
|
|
- value: document.querySelector("#edit-submitted-message").value = document.querySelector("#edit-submitted-message").value.replace(/"/g, '');
|
|
- click_on:
|
|
- value: Submit
|
|
selector: "#webform-client-form-7 input[name='op']"
|
|
success:
|
|
headers:
|
|
status: 200
|
|
body:
|
|
contains: Thank you |