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