Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
bioguide: L000397
contact_form:
method: get
action: /contact/contactform.htm
steps:
- visit: "https://lofgren.house.gov/contact/default.aspx"
- fill_in:
- name: zip5
selector: "form.zipform input[name='zip5']"
value: $ADDRESS_ZIP5
required: true
- name: zip4
selector: "form.zipform input[name='zip4']"
value: $ADDRESS_ZIP4
required: true
- click_on:
- value: Submit
selector: "form.zipform input[type='submit'][value='Submit']"
- find:
- selector: "#contact input[name='required-first']"
- javascript:
- value: "Array.prototype.forEach.call(document.querySelectorAll('style,[rel=\"stylesheet\"],[type=\"text/css\"]'), function(element){ try{ element.parentNode.removeChild(element) } catch(err){} });"
- fill_in:
- name: required-first
selector: "#contact input[name='required-first']"
value: $NAME_FIRST
required: true
- name: required-last
selector: "#contact input[name='required-last']"
value: $NAME_LAST
required: true
- name: required-address
selector: "#contact input[name='required-address']"
value: $ADDRESS_STREET
required: true
- name: required-city
selector: "#contact input[name='required-city']"
value: $ADDRESS_CITY
required: true
- name: required-email
selector: "#contact input[name='required-email']"
value: $EMAIL
required: true
- name: phone
selector: "#contact input[name='phone']"
value: $PHONE
required: true
- name: required-message
selector: "#contact textarea[name='required-message']"
value: $MESSAGE
required: true
- select:
- name: required-prefix
selector: "#contact select[name='required-prefix']"
value: $NAME_PREFIX
required: true
options:
Mr.: Mr.
Mrs.: Mrs.
Ms.: Ms.
Dr.: Dr.
Rev.: Rev.
- name: required-issue
selector: "#subject"
value: $TOPIC
required: true
options:
Agriculture: AGR
Animals: ANIM
Arts: ARTS
Banking and Finance: FIN.BANK
Budget: BUD
Constitutional Law: CONST.LAW
Criminal Law: CRI.LAW
Defense: DEF
Economy: ECON
Education: EDU
Employment: EMPLOY
Elections: ELEC.CAMP
Energy: ENE
Environment: ENV
Foreign Affairs: FOR
Health Care: HEA.CARE
Homeland Security: HOM
Housing: HOU
Human Rights: HUMAN RIGHTS
Immigration: IMM
Intel Property: IP.PAT.COPY
Judiciary: JUD
Natural Resources: NAT.RES
Preventing Gun Violence: GUN CONTROL
Science: SCI.NASA
Seniors Issues: SEN
Social Security: SOC
Tax: TAX
Technology: TECH
Telecommunications: TELE.INT
Trade: TRD
Transportation: TRN
Veterans: VET
Womens Issues: WOM
Other Issue: OTHER
- javascript:
- value: document.querySelector("#contact textarea[name='required-message']").value = document.querySelector("#contact textarea[name='required-message']").value.replace(/"/g, '');
- javascript:
- value: "document.querySelector('form#contact').submit();"
- wait:
- value: 3
- find:
- selector: "#ctl00_ctl13_ContentTable > tbody > tr:nth-child(2) > td #ctl00_ctl13_ctl00_Text"
success:
headers:
status: 200
body:
contains: Thank you