Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
147 lines (147 sloc) 3.38 KB
bioguide: D000096
contact_form:
method: post
action: /email-me/
steps:
- visit: "https://davis.house.gov/email-me"
- fill_in:
- name: firstname
selector: "#req_firstname"
value: $NAME_FIRST
required: true
- name: lastname
selector: "#req_lastname"
value: $NAME_LAST
required: true
- name: street
selector: "#req_street"
value: $ADDRESS_STREET
required: true
- name: city
selector: "#req_city"
value: $ADDRESS_CITY
required: true
- name: zipcode
selector: "#req_zip"
value: $ADDRESS_ZIP5
required: true
- name: emailaddress
selector: "#req_email"
value: $EMAIL
required: true
- name: message
selector: "#req_message"
value: $MESSAGE
required: true
- select:
- name: prefix
selector: "#prefix"
value: $NAME_PREFIX
required: true
options:
Mr.: "Mr. "
Mrs.: Mrs.
Ms.: Ms.
Miss: Miss
Dr.: Dr.
Hon.: Hon.
Rev.: Rev.
Rabbi: Rabbi
Other: Other
- name: state
selector: "#req_state"
value: $ADDRESS_STATE_POSTAL_ABBREV
required: true
options:
- AK
- AL
- AR
- AZ
- CA
- CO
- CT
- DC
- DE
- FL
- GA
- HI
- IA
- ID
- IL
- IN
- KS
- KY
- LA
- MA
- MD
- ME
- MI
- MN
- MO
- MS
- MT
- NC
- ND
- NE
- NH
- NJ
- NM
- NV
- NY
- OH
- OK
- OR
- PA
- PR
- RI
- SC
- SD
- TS
- TX
- UT
- VA
- VT
- WA
- WI
- WV
- WY
- name: issue
selector: "#req_issue"
value: $TOPIC
required: true
options:
Agriculture: AGRI
Budget: BUD
Defense: DEF
Education: EDU
Energy: ENR
Environmental: ENV
Foreign Affairs: FAFF
Government Issues: GOV
Health: HLTH
Homeland Security: HOM
Immigration: IMM
International Relations: INT
Judicial: JUD
Labor: LAB
Social Security: SOC
Taxes: TAX
Telecommunications: TELE
Transportation: TRANS
Trade: TRD
Veterans: VET
Welfare: WEL
Other Issues: OTH
- javascript:
- value: document.querySelector("#req_message").value = document.querySelector("#req_message").value.replace(/"/g, '');
- javascript:
- value: "document.querySelector('#custom_form63').submit();"
- wait:
- value: 3
- find:
- selector: '#centerbox > h1'
success:
headers:
status: 200
body:
contains: THANK YOU