Files
contact-congress/members/L000594.yaml
2023-01-03 17:08:43 -05:00

133 lines
4.5 KiB
YAML

bioguide: L000594
contact_form:
method: post
action: ""
steps:
- visit: "https://www.loeffler.senate.gov/connect/email-kelly"
- fill_in:
- name: "first_name"
selector: "#edit-first-name"
value: $NAME_FIRST
required: true
- name: "last_name"
selector: "#edit-last-name"
value: $NAME_LAST
required: true
- name: "address_1"
selector: "#edit-address-1"
value: $ADDRESS_STREET
required: true
- name: "address_2"
selector: "#edit-address-2"
value: $ADDRESS_STREET_2
required: false
- name: "city"
selector: "#edit-city"
value: $ADDRESS_CITY
required: true
- name: "zip"
selector: "#edit-zip"
value: $ADDRESS_ZIP5
required: true
- name: "phone"
selector: "#edit-phone"
value: $PHONE
required: false
- name: "email"
selector: "#edit-email"
value: $EMAIL
required: true
- name: "subject"
selector: "#edit-subject"
value: $SUBJECT
required: true
- name: "message"
selector: "#edit-message"
value: $MESSAGE
required: true
- select:
- name: "prefix"
selector: "#edit-prefix"
value: $NAME_PREFIX
required: true
options:
"Mr.": "Mr."
"Mrs.": "Mrs."
"Ms.": "Ms."
"Mr. and Mrs.": "Mr. and Mrs."
"Dr.": "Dr."
"Dr. and Mrs.": "Dr. and Mrs."
- name: "state"
selector: "#edit-state"
value: $ADDRESS_STATE_POSTAL_ABBREV
required: true
options: US_STATES
- name: "topic"
selector: "#edit-topic"
value: $TOPIC
required: true
options:
"Abortion": "Abortion"
"Adoption": "Adoption"
"Aging": "Aging"
"Agriculture": "Agriculture"
"Animal Welfare": "Animal Welfare"
"Appropriations": "Appropriations"
"Banking": "Banking"
"Campaign Finance": "Campaign Finance"
"Children": "Children"
"Civil Rights": "Civil Rights"
"Commerce": "Commerce"
"Communications": "Communications"
"Congressional Issues": "Congressional Issues"
"Crime": "Crime"
"Defense": "Defense"
"Drugs": "Drugs"
"Economy": "Economy"
"Education Higher": "Education Higher"
"Education K through 12": "Education K through 12"
"Elections": "Elections"
"Energy": "Energy"
"Environment": "Environment"
"Family": "Family"
"Food Stamps": "Food Stamps"
"Foreign Affairs": "Foreign Affairs"
"Gun Control": "Gun Control"
"Health": "Health"
"Homeland Security": "Homeland Security"
"Housing": "Housing"
"Immigration": "Immigration"
"Insurance Health": "Insurance Health"
"Insurance Other": "Insurance Other"
"Interior": "Interior"
"Iran": "Iran"
"Iraq": "Iraq"
"Judiciary": "Judiciary"
"Labor": "Labor"
"Medicaid": "Medicaid"
"Medicare": "Medicare"
"Military": "Military"
"NASA": "NASA"
"Nutrition": "Nutrition"
"Other": "Other"
"Patents": "Patents"
"Pensions": "Pensions"
"Securities": "Securities"
"Small Business": "Small Business"
"Social Security": "Social Security"
"Taxes": "Taxes"
"Tobacco": "Tobacco"
"Trade": "Trade"
"Transportation": "Transportation"
"Veterans": "Veterans"
"Welfare": "Welfare"
- click_on:
- value: Send message
selector: "#edit-actions-submit"
# Please note that this page redirects to itself, blanking out the form, and does not provide a positive acceptance message. A Senate contact indicated that this form is likely a temporary form and will be replaced later. Therefore, the success criteria is looking for a phrase on the reloaded page. This may result in failures being recorded as successes, but we are hopeful a new form will be introduced soon with a better success signal.
success:
headers:
status: 302
body:
contains: "Thank you, your message has been sent"