mirror of
https://github.com/unitedstates/contact-congress.git
synced 2025-12-19 09:27:29 -05:00
103 lines
4.2 KiB
YAML
103 lines
4.2 KiB
YAML
bioguide: S001203
|
|
contact_form:
|
|
method: post
|
|
action: "/content/contact-senator"
|
|
steps:
|
|
- visit: "https://www.smith.senate.gov/share-your-opinion"
|
|
- fill_in:
|
|
- name: "form_fields[first_name]"
|
|
selector: "#form-field-first_name"
|
|
value: $NAME_FIRST
|
|
required: true
|
|
- name: "form_fields[last_name]"
|
|
selector: "#form-field-last_name"
|
|
value: $NAME_LAST
|
|
required: true
|
|
- name: "form_fields[address_1]"
|
|
selector: "#form-field-address_1"
|
|
value: $ADDRESS_STREET
|
|
required: true
|
|
- name: "form_fields[city]"
|
|
selector: "#form-field-city"
|
|
value: $ADDRESS_CITY
|
|
required: true
|
|
- name: "form_fields[zipcode]"
|
|
selector: "#form-field-zipcode"
|
|
value: $ADDRESS_ZIP5
|
|
required: true
|
|
- name: "form_fields[email]"
|
|
selector: "#form-field-email"
|
|
value: $EMAIL
|
|
required: true
|
|
- name: "form_fields[subject]"
|
|
selector: "#form-field-subject"
|
|
value: $SUBJECT
|
|
required: true
|
|
- name: "form_fields[message]"
|
|
selector: "#form-field-message"
|
|
value: $MESSAGE
|
|
required: true
|
|
- select:
|
|
- name: "form_fields[topic]"
|
|
selector: "#form-field-topic"
|
|
value: $TOPIC
|
|
required: true
|
|
options:
|
|
"Agriculture and Food": "Agriculture and Food"
|
|
"Animals": "Animals"
|
|
"Armed Forces and National Security": "Armed Forces and National Security"
|
|
"Arts": "Arts"
|
|
"Appropriations": "Appropriations"
|
|
"Banking": "Banking"
|
|
"Budget/Appropriations": "Budget/Appropriations"
|
|
"Childcare": "Childcare"
|
|
"Child Welfare": "Child Welfare"
|
|
"Climate Change": "Climate Change"
|
|
"Commerce": "Commerce"
|
|
"Crime and Law Enforcement": "Crime and Law Enforcement"
|
|
"Eagle Scout Letter": "Eagle Scout Letter"
|
|
"Economics and Public Finance": "Economics and Public Finance"
|
|
"Education": "Education"
|
|
"Energy": "Energy"
|
|
"Environmental Protection": "Environmental Protection"
|
|
"Finance and Financial Sector": "Finance and Financial Sector"
|
|
"General": "General"
|
|
"Girl Scout Letter": "Girl Scout Letter"
|
|
"Government Affairs": "Government Affairs"
|
|
"Gun Safety": "Gun Safety"
|
|
"Health": "Health"
|
|
"Housing and Community Development": "Housing and Community Development"
|
|
"Foreign Trade and International Finance": "Foreign Trade and International Finance"
|
|
"Immigration": "Immigration"
|
|
"Indian Affairs": "Indian Affairs"
|
|
"International Affairs": "International Affairs"
|
|
"Judiciary (Elections and Civil Rights)": "Judiciary (Elections and Civil Rights)"
|
|
"Judicial Nominations/Executive Nominations": "Judicial Nominations/Executive Nominations"
|
|
"Labor and Employment": "Labor and Employment"
|
|
"Medicare/Medicaid": "Medicare/Medicaid"
|
|
"Nutrition": "Nutrition"
|
|
"Postal": "Postal"
|
|
"Public Lands and Natural Resources": "Public Lands and Natural Resources"
|
|
"Reproductive Rights": "Reproductive Rights"
|
|
"Science, Technology, Communications": "Science, Technology, Communications"
|
|
"Social Sciences and History": "Social Sciences and History"
|
|
"Social Security/Retirement": "Social Security/Retirement"
|
|
"NASA": "NASA"
|
|
"Taxation": "Taxation"
|
|
"Transportation and Public Works": "Transportation and Public Works"
|
|
"Veterans": "Veterans"
|
|
"Water Resources Development": "Water Resources Development"
|
|
- javascript:
|
|
- value: document.querySelector("#form-field-message").value = document.querySelector("#form-field-message").value.replace(/"/g, '');
|
|
- click_on:
|
|
- selector: "#form-field-subscribe-1"
|
|
- click_on:
|
|
- selector: "button.elementor-button"
|
|
- javascript:
|
|
- value: 'document.querySelector(".elementor-message-success").style.display = "block";'
|
|
success:
|
|
headers:
|
|
status: 200
|
|
body:
|
|
contains: ""
|