Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2019-09-22 - New form for the speaker of the house #198

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
102 changes: 102 additions & 0 deletions US/speaker.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
contact_form:
steps:
- visit: "https://www.speaker.gov/contact"
- fill_in:
- name: "submitted[first_name]"
selector: "#edit-submitted-first-name"
value: $NAME_FIRST
required: true
# max length: 200
- name: "submitted[last_name]"
selector: "#edit-submitted-last-name"
value: $NAME_LAST
required: true
# max length: 200
- name: "submitted[address]"
selector: "#edit-submitted-address"
value: $ADDRESS_STREET
required: false
# max length: 200
- name: "submitted[city]"
selector: "#edit-submitted-city"
value: $ADDRESS_CITY
required: true
# max length: 200
- select:
- name: "submitted[state]"
selector: "#edit-submitted-state"
value: $ADDRESS_STATE_FULL
required: false
options:
"Alabama": "Alabama"
"Alaska": "Alaska"
"Arizona": "Arizona"
"Arkansas": "Arkansas"
"California": "California"
"Colorado": "Colorado"
"Connecticut": "Connecticut"
"Delaware": "Delaware"
"District of Columbia": "District of Columbia"
"Florida": "Florida"
"Georgia": "Georgia"
"Hawaii": "Hawaii"
"Idaho": "Idaho"
"Illinois": "Illinois"
"Indiana": "Indiana"
"Iowa": "Iowa"
"Kansas": "Kansas"
"Kentucky": "Kentucky"
"Louisiana": "Louisiana"
"Maine": "Maine"
"Maryland": "Maryland"
"Massachusetts": "Massachusetts"
"Michigan": "Michigan"
"Minnesota": "Minnesota"
"Mississippi": "Mississippi"
"Missouri": "Missouri"
"Montana": "Montana"
"Nebraska": "Nebraska"
"Nevada": "Nevada"
"New Hampshire": "New Hampshire"
"New Jersey": "New Jersey"
"New Mexico": "New Mexico"
"New York": "New York"
"North Carolina": "North Carolina"
"North Dakota": "North Dakota"
"Ohio": "Ohio"
"Oklahoma": "Oklahoma"
"Oregon": "Oregon"
"Pennsylvania": "Pennsylvania"
"Rhode Island": "Rhode Island"
"South Carolina": "South Carolina"
"South Dakota": "South Dakota"
"Tennessee": "Tennessee"
"Texas": "Texas"
"Utah": "Utah"
"Vermont": "Vermont"
"Virginia": "Virginia"
"Washington": "Washington"
"West Virginia": "West Virginia"
"Wisconsin": "Wisconsin"
"Wyoming": "Wyoming"
- fill_in:
- name: "submitted[zip]"
selector: "#edit-submitted-zip"
value: $ADDRESS_ZIP5
required: false
- name: "submitted[email]"
selector: "#edit-submitted-email"
value: $EMAIL
required: true
- name: "submitted[comments]"
selector: "#edit-submitted-comments"
value: $MESSAGE
required: true
- recaptcha:
- value: true
- click_on:
- name: "op"
selector: "input[name='op'][type='submit'][value='Send Email']"
success:
body:
contains: "Thank you, your message has been sent"