mirror of
https://github.com/unitedstates/contact-congress.git
synced 2025-12-19 17:37:24 -05:00
Merge pull request #2582 from EvanGulick-JacksonRiver/patch-42
Update out of date webforms
This commit is contained in:
@@ -4,46 +4,44 @@ contact_form:
|
|||||||
action: ""
|
action: ""
|
||||||
steps:
|
steps:
|
||||||
- visit: "https://www.alsobrooks.senate.gov/share-your-opinion/"
|
- visit: "https://www.alsobrooks.senate.gov/share-your-opinion/"
|
||||||
|
- wait:
|
||||||
|
- value: 3
|
||||||
- fill_in:
|
- fill_in:
|
||||||
- name: form_fields[name]
|
|
||||||
selector: "#form-field-name"
|
|
||||||
value: $NAME_PREFIX
|
|
||||||
required: true
|
|
||||||
- name: form_fields[field_1d46919]
|
- name: form_fields[field_1d46919]
|
||||||
selector: "#form-field-field_1d46919"
|
selector: "#input_2_2"
|
||||||
value: $NAME_FIRST
|
value: $NAME_FIRST
|
||||||
required: true
|
required: true
|
||||||
- name: form_fields[field_bdcaff9]
|
- name: form_fields[field_bdcaff9]
|
||||||
selector: "#form-field-field_bdcaff9"
|
selector: "#input_2_3"
|
||||||
value: $NAME_LAST
|
value: $NAME_LAST
|
||||||
required: true
|
required: true
|
||||||
- name: form_fields[field_00c2cf4]
|
- name: form_fields[field_00c2cf4]
|
||||||
selector: "#form-field-field_00c2cf4"
|
selector: "#input_2_6_1"
|
||||||
value: $ADDRESS_STREET
|
value: $ADDRESS_STREET
|
||||||
required: true
|
required: true
|
||||||
- name: form_fields[field_5ce9e4e]
|
- name: form_fields[field_5ce9e4e]
|
||||||
selector: "#form-field-field_5ce9e4e"
|
selector: "#input_2_6_3"
|
||||||
value: $ADDRESS_CITY
|
value: $ADDRESS_CITY
|
||||||
required: true
|
required: true
|
||||||
- name: form_fields[field_1037219]
|
- name: form_fields[field_1037219]
|
||||||
selector: "#form-field-field_1037219"
|
selector: "#input_2_6_5"
|
||||||
value: $ADDRESS_ZIP5
|
value: $ADDRESS_ZIP5
|
||||||
required: true
|
required: true
|
||||||
- name: form_fields[email]
|
- name: form_fields[email]
|
||||||
selector: "#form-field-email"
|
selector: "#input_2_42"
|
||||||
value: $EMAIL
|
value: $EMAIL
|
||||||
required: true
|
required: true
|
||||||
- name: form_fields[field_65932fe]
|
- name: form_fields[field_65932fe]
|
||||||
selector: "#form-field-field_65932fe"
|
selector: "#input_2_11"
|
||||||
value: $SUBJECT
|
value: $SUBJECT
|
||||||
required: true
|
required: true
|
||||||
- name: form_fields[field_01539f0]
|
- name: form_fields[field_01539f0]
|
||||||
selector: "#form-field-field_01539f0"
|
selector: "#input_2_12"
|
||||||
value: $MESSAGE
|
value: $MESSAGE
|
||||||
required: true
|
required: true
|
||||||
- select:
|
- select:
|
||||||
- name: form_fields[message]
|
- name: form_fields[message]
|
||||||
selector: "#form-field-message"
|
selector: "#input_2_17"
|
||||||
value: $TOPIC
|
value: $TOPIC
|
||||||
required: true
|
required: true
|
||||||
options:
|
options:
|
||||||
@@ -101,7 +99,7 @@ contact_form:
|
|||||||
Welfare: WEL
|
Welfare: WEL
|
||||||
"Women's Issues": WOMEN
|
"Women's Issues": WOMEN
|
||||||
- name: form_fields[field_dd4016c]
|
- name: form_fields[field_dd4016c]
|
||||||
selector: "#form-field-field_dd4016c"
|
selector: "#input_2_6_4"
|
||||||
value: $ADDRESS_STATE_POSTAL_ABBREV
|
value: $ADDRESS_STATE_POSTAL_ABBREV
|
||||||
required: true
|
required: true
|
||||||
options:
|
options:
|
||||||
@@ -159,11 +157,9 @@ contact_form:
|
|||||||
- javascript:
|
- javascript:
|
||||||
- value: document.querySelector("#form-field-field_01539f0").value = document.querySelector("#form-field-field_01539f0").value.replace(/"/g, '');
|
- value: document.querySelector("#form-field-field_01539f0").value = document.querySelector("#form-field-field_01539f0").value.replace(/"/g, '');
|
||||||
- click_on:
|
- click_on:
|
||||||
- selector: button.elementor-button[type='submit']
|
- selector: "#gform_submit_button_2"
|
||||||
- wait:
|
- wait:
|
||||||
- value: 3
|
- value: 3
|
||||||
- javascript:
|
|
||||||
- value: if (document.querySelector(".elementor-message-success")) { document.querySelector(".elementor-message-success").style.display = "block"; }
|
|
||||||
success:
|
success:
|
||||||
headers:
|
headers:
|
||||||
status: 200
|
status: 200
|
||||||
|
|||||||
@@ -5,10 +5,6 @@ contact_form:
|
|||||||
steps:
|
steps:
|
||||||
- visit: "https://www.banks.senate.gov/share-your-opinion/"
|
- visit: "https://www.banks.senate.gov/share-your-opinion/"
|
||||||
- fill_in:
|
- fill_in:
|
||||||
- name: input_39
|
|
||||||
selector: "#input_2_39"
|
|
||||||
value: $NAME_PREFIX
|
|
||||||
required: true
|
|
||||||
- name: input_2
|
- name: input_2
|
||||||
selector: "#input_2_2"
|
selector: "#input_2_2"
|
||||||
value: $NAME_FIRST
|
value: $NAME_FIRST
|
||||||
@@ -115,6 +111,19 @@ contact_form:
|
|||||||
- Armed Forces Europe
|
- Armed Forces Europe
|
||||||
- Armed Forces Pacific
|
- Armed Forces Pacific
|
||||||
- select:
|
- select:
|
||||||
|
- name: input_39
|
||||||
|
selector: "#input_2_39"
|
||||||
|
value: $NAME_PREFIX
|
||||||
|
required: true
|
||||||
|
options:
|
||||||
|
- Mr.
|
||||||
|
- Mrs.
|
||||||
|
- Ms.
|
||||||
|
- Miss
|
||||||
|
- Professor
|
||||||
|
- Dean
|
||||||
|
- The Honorable
|
||||||
|
- Dr.
|
||||||
- name: input_17
|
- name: input_17
|
||||||
selector: "#input_2_17"
|
selector: "#input_2_17"
|
||||||
value: $TOPIC
|
value: $TOPIC
|
||||||
|
|||||||
@@ -1,163 +1,193 @@
|
|||||||
bioguide: B001303
|
bioguide: B001303
|
||||||
contact_form:
|
contact_form:
|
||||||
method: post
|
method: post
|
||||||
action:
|
action: ""
|
||||||
steps:
|
steps:
|
||||||
- visit: "https://www.bluntrochester.senate.gov/share-your-opinion/"
|
- visit: "https://www.bluntrochester.senate.gov/contact/write-to-lbr/"
|
||||||
- fill_in:
|
- fill_in:
|
||||||
- name: form_fields[name]
|
- name: input_2
|
||||||
selector: "#form-field-name"
|
selector: "#input_2_2"
|
||||||
value: $NAME_PREFIX
|
value: $NAME_FIRST
|
||||||
required: true
|
required: true
|
||||||
- name: form_fields[field_1d46919]
|
- name: input_3
|
||||||
selector: "#form-field-field_1d46919"
|
selector: "#input_2_3"
|
||||||
value: $NAME_FIRST
|
value: $NAME_LAST
|
||||||
required: true
|
required: true
|
||||||
- name: form_fields[field_bdcaff9]
|
- name: input_6.1
|
||||||
selector: "#form-field-field_bdcaff9"
|
selector: "#input_2_6_1"
|
||||||
value: $NAME_LAST
|
value: $ADDRESS_STREET
|
||||||
required: true
|
required: true
|
||||||
- name: form_fields[field_00c2cf4]
|
- name: input_6.3
|
||||||
selector: "#form-field-field_00c2cf4"
|
selector: "#input_2_6_3"
|
||||||
value: $ADDRESS_STREET
|
value: $ADDRESS_CITY
|
||||||
required: true
|
required: true
|
||||||
- name: form_fields[field_5ce9e4e]
|
- name: input_6.5
|
||||||
selector: "#form-field-field_5ce9e4e"
|
selector: "#input_2_6_5"
|
||||||
value: $ADDRESS_CITY
|
value: $ADDRESS_ZIP5
|
||||||
required: true
|
required: true
|
||||||
- name: form_fields[field_1037219]
|
- name: input_41
|
||||||
selector: "#form-field-field_1037219"
|
selector: "#input_2_41"
|
||||||
value: $ADDRESS_ZIP5
|
value: $PHONE
|
||||||
required: true
|
required: true
|
||||||
- name: form_fields[email]
|
- name: input_9
|
||||||
selector: "#form-field-email"
|
selector: "#input_2_9"
|
||||||
value: $EMAIL
|
value: $EMAIL
|
||||||
required: true
|
required: true
|
||||||
- name: form_fields[field_65932fe]
|
- name: input_9_2
|
||||||
selector: "#form-field-field_65932fe"
|
selector: "#input_2_9_2"
|
||||||
value: $SUBJECT
|
value: $EMAIL
|
||||||
required: true
|
required: true
|
||||||
- name: form_fields[field_01539f0]
|
- name: input_11
|
||||||
selector: "#form-field-field_01539f0"
|
selector: "#input_2_11"
|
||||||
value: $MESSAGE
|
value: $SUBJECT
|
||||||
required: true
|
required: true
|
||||||
|
- name: input_12
|
||||||
|
selector: "#input_2_12"
|
||||||
|
value: $MESSAGE
|
||||||
|
required: true
|
||||||
- select:
|
- select:
|
||||||
- name: form_fields[message]
|
- name: input_39
|
||||||
selector: "#form-field-message"
|
selector: "#input_2_39"
|
||||||
value: $TOPIC
|
value: $NAME_PREFIX
|
||||||
required: true
|
required: false
|
||||||
options:
|
options:
|
||||||
Agriculture: AGR
|
- Mr.
|
||||||
Animal Welfare: AN
|
- Mrs.
|
||||||
Arts, Museums, & Libraries: ART
|
- Mx.
|
||||||
Banking & Financial Services: BANK
|
- Ms.
|
||||||
Budget and Economy: BUD
|
- Miss
|
||||||
Campaign Finance Reform: CFR
|
- Professor
|
||||||
Child Tax Credit: CTC
|
- Dean
|
||||||
Chemical Safety: CHEM
|
- The Honorable
|
||||||
Civil Rights/Humanities: CIVIL
|
- Dr.
|
||||||
Civil Service/Postal: CIVILSERV
|
- name: input_17
|
||||||
Congress: CONG
|
selector: "#input_2_17"
|
||||||
Defense & Military: DEF
|
value: $TOPIC
|
||||||
Economy: ECON
|
required: true
|
||||||
Education: EDU
|
options:
|
||||||
Election Reform & Voting Rights: ELECT
|
Agriculture: Agriculture
|
||||||
Energy & Climate: ENE
|
Animal Rights & Wildlife: Animal Rights & Wildlife
|
||||||
Environment: ENV
|
Arts & Humanities: Arts & Humanities
|
||||||
Federal Court Nominations: FEDCOURT
|
Campaign Finance: Campaign Finance
|
||||||
Foreign Relations: FR
|
Civil Rights & Liberties: Civil Rights & Liberties
|
||||||
Foreign Trade: FT
|
Coast Guard, Fisheries, & Maritime: Coast Guard, Fisheries, & Maritime
|
||||||
Foster Care & Adoption: ADOPT
|
Congressional Reform: Congressional Reform
|
||||||
Governmental Reform: GOV
|
Commerce: Commerce
|
||||||
Guns: GUN
|
Consumer Protection: Consumer Protection
|
||||||
Health: HEA
|
Criminal Justice: Criminal Justice
|
||||||
Housing: HUD
|
Cybersecurity, Data Security: Cybersecurity, Data Security
|
||||||
Immigration: IMM
|
DC Statehood: DC Statehood
|
||||||
Infrastructure: INFRA
|
Defense: Defense
|
||||||
International Relations: INT
|
Economy: Economy
|
||||||
Judiciary: JUD
|
Education: Education
|
||||||
Labor: LAB
|
Elections & Voting Rights: Elections & Voting Rights
|
||||||
LGBT: LGBT
|
Energy: Energy
|
||||||
Life: LIFE
|
Environment & EPA: Environment & EPA
|
||||||
Other: OTHER
|
FEMA: FEMA
|
||||||
Postal Service: POST
|
Foreign Policy: Foreign Policy
|
||||||
Science & Technology: SCI
|
Financial Services/Banking: Financial Services/Banking
|
||||||
Social Issues: SOC
|
Foreign Relations: Foreign Relations
|
||||||
Small Business: SM.BUS
|
Health: Health
|
||||||
Social Security: SSEC
|
Housing: Housing
|
||||||
Taxes/IRS: TAX
|
Government Affairs: Government Affairs
|
||||||
Telecommunications: TEL
|
Guns & Firearms: Guns & Firearms
|
||||||
Transportation: TRA
|
Homeland Security: Homeland Security
|
||||||
Trade: TRADE
|
Human Rights-Global: Human Rights-Global
|
||||||
Women's Issues: WOMEN
|
Internship/Senate Page Inquiry: Internship/Senate Page Inquiry
|
||||||
Water: WATER
|
Immigration & Border Security: Immigration & Border Security
|
||||||
- select:
|
Infrastructure: Infrastructure
|
||||||
- name: form_fields[field_dd4016c]
|
Intel & Counterterrorism: Intel & Counterterrorism
|
||||||
selector: "#form-field-field_dd4016c"
|
Interior & National Parks: Interior & National Parks
|
||||||
value: $ADDRESS_STATE_POSTAL_ABBREV
|
Judiciary: Judiciary
|
||||||
required: true
|
Labor: Labor
|
||||||
options:
|
LGBTQ: LGBTQ
|
||||||
Alabama: AL
|
Medicaid: Medicaid
|
||||||
Alaska: AK
|
Medicare: Medicare
|
||||||
Arizona: AZ
|
Native American Affairs: Native American Affairs
|
||||||
Arkansas: AR
|
Patents & Intellectual Property: Patents & Intellectual Property
|
||||||
California: CA
|
Pensions: Pensions
|
||||||
Colorado: CO
|
Postal: Postal
|
||||||
Connecticut: CT
|
Science, Technology, & Artificial Intelligence: Science, Technology, & Artificial Intelligence
|
||||||
Delaware: DE
|
Seniors & Aging: Seniors & Aging
|
||||||
District of Columbia: DC
|
Small Business: Small Business
|
||||||
Florida: FL
|
Social Security: Social Security
|
||||||
Georgia: GA
|
Space & NASA: Space & NASA
|
||||||
Hawaii: HI
|
Taxes: Taxes
|
||||||
Idaho: ID
|
Telecommunications: Telecommunications
|
||||||
Illinois: IL
|
Trade: Trade
|
||||||
Indiana: IN
|
Transportation: Transportation
|
||||||
Iowa: IA
|
Veterans: Veterans
|
||||||
Kansas: KS
|
Welfare: Welfare
|
||||||
Kentucky: KY
|
Women's Health: Women's Health
|
||||||
Louisiana: LA
|
Women's Rights: Women's Rights
|
||||||
Maine: ME
|
- name: input_6.4
|
||||||
Maryland: MD
|
selector: "#input_2_6_4"
|
||||||
Massachusetts: MA
|
value: $ADDRESS_STATE_FULL
|
||||||
Michigan: MI
|
required: true
|
||||||
Minnesota: MN
|
options:
|
||||||
Mississippi: MS
|
- Alabama
|
||||||
Missouri: MO
|
- Alaska
|
||||||
Montana: MT
|
- American Samoa
|
||||||
Nebraska: NE
|
- Arizona
|
||||||
Nevada: NV
|
- Arkansas
|
||||||
New Hampshire: NH
|
- California
|
||||||
New Jersey: NJ
|
- Colorado
|
||||||
New Mexico: NM
|
- Connecticut
|
||||||
New York: NY
|
- Delaware
|
||||||
North Carolina: NC
|
- District of Columbia
|
||||||
North Dakota: ND
|
- Florida
|
||||||
Ohio: OH
|
- Georgia
|
||||||
Oklahoma: OK
|
- Guam
|
||||||
Oregon: OR
|
- Hawaii
|
||||||
Pennsylvania: PA
|
- Idaho
|
||||||
Rhode Island: RI
|
- Illinois
|
||||||
South Carolina: SC
|
- Indiana
|
||||||
South Dakota: SD
|
- Iowa
|
||||||
Tennessee: TN
|
- Kansas
|
||||||
Texas: TX
|
- Kentucky
|
||||||
Utah: UT
|
- Louisiana
|
||||||
Vermont: VT
|
- Maine
|
||||||
Virginia: VA
|
- Maryland
|
||||||
Washington: WA
|
- Massachusetts
|
||||||
West Virginia: WV
|
- Michigan
|
||||||
Wisconsin: WI
|
- Minnesota
|
||||||
Wyoming: WY
|
- Mississippi
|
||||||
- javascript:
|
- Missouri
|
||||||
- value: document.querySelector("#form-field-field_01539f0").value = document.querySelector("#form-field-field_01539f0").value.replace(/"/g, '');
|
- Montana
|
||||||
|
- Nebraska
|
||||||
|
- Nevada
|
||||||
|
- New Hampshire
|
||||||
|
- New Jersey
|
||||||
|
- New Mexico
|
||||||
|
- New York
|
||||||
|
- North Carolina
|
||||||
|
- North Dakota
|
||||||
|
- Northern Mariana Islands
|
||||||
|
- Ohio
|
||||||
|
- Oklahoma
|
||||||
|
- Oregon
|
||||||
|
- Pennsylvania
|
||||||
|
- Puerto Rico
|
||||||
|
- Rhode Island
|
||||||
|
- South Carolina
|
||||||
|
- South Dakota
|
||||||
|
- Tennessee
|
||||||
|
- Texas
|
||||||
|
- Utah
|
||||||
|
- U.S. Virgin Islands
|
||||||
|
- Vermont
|
||||||
|
- Virginia
|
||||||
|
- Washington
|
||||||
|
- West Virginia
|
||||||
|
- Wisconsin
|
||||||
|
- Wyoming
|
||||||
|
- Armed Forces Americas
|
||||||
|
- Armed Forces Europe
|
||||||
|
- Armed Forces Pacific
|
||||||
- click_on:
|
- click_on:
|
||||||
- selector: button.elementor-button[type='submit']
|
- selector: '#gform_submit_button_2'
|
||||||
- wait:
|
|
||||||
- value: 3
|
|
||||||
- javascript:
|
|
||||||
- value: if (document.querySelector(".elementor-message-success")) { document.querySelector(".elementor-message-success").style.display = "block"; }
|
|
||||||
success:
|
success:
|
||||||
headers:
|
headers:
|
||||||
status: 200
|
status: 200
|
||||||
body:
|
body:
|
||||||
contains: ""
|
contains: "Thank you for taking the time to write to me and my team."
|
||||||
|
|||||||
@@ -164,8 +164,8 @@ contact_form:
|
|||||||
- click_on:
|
- click_on:
|
||||||
- value: Submit
|
- value: Submit
|
||||||
selector: "#gform_submit_button_2"
|
selector: "#gform_submit_button_2"
|
||||||
- wait:
|
- javascript:
|
||||||
- value: 3
|
- value: if (document.querySelector(".elementor-message-success")) { document.querySelector(".elementor-message-success").style.display = "block"; }
|
||||||
success:
|
success:
|
||||||
headers:
|
headers:
|
||||||
status: 200
|
status: 200
|
||||||
|
|||||||
@@ -95,7 +95,7 @@ contact_form:
|
|||||||
Transportation: TRA
|
Transportation: TRA
|
||||||
Veterans: VET
|
Veterans: VET
|
||||||
- click_on:
|
- click_on:
|
||||||
- selector: "#.gform_button#gform_submit_button_14"
|
- selector: ".gform_button#gform_submit_button_14"
|
||||||
- find:
|
- find:
|
||||||
- selector: h2
|
- selector: h2
|
||||||
value: Thank You
|
value: Thank You
|
||||||
|
|||||||
Reference in New Issue
Block a user