From 6520ca0fbbbe878a8f7ce1ef8acfaf5435ecc15d Mon Sep 17 00:00:00 2001 From: Jason Rosenbaum Date: Thu, 8 Dec 2016 12:04:56 -0800 Subject: [PATCH] more captchas --- members/A000055.yaml | 2 + members/A000367.yaml | 2 + members/A000373.yaml | 2 + members/B000213.yaml | 5 ++ members/B000755.yaml | 2 + members/B001243.yaml | 2 + members/B001248.yaml | 24 +++---- members/B001251.yaml | 2 + members/B001273.yaml | 2 + members/B001274.yaml | 2 + members/B001282.yaml | 2 + members/B001283.yaml | 2 + members/B001284.yaml | 2 + members/B001291.yaml | 2 + members/B001294.yaml | 2 + members/C000266.yaml | 2 + members/C000754.yaml | 2 + members/C001045.yaml | 2 + members/C001049.yaml | 6 +- members/C001053.yaml | 2 + members/C001063.yaml | 2 + members/C001068.yaml | 8 +-- members/C001072.yaml | 2 + members/C001076.yaml | 2 + members/C001077.yaml | 2 + members/C001090.yaml | 2 + members/C001091.yaml | 8 +-- members/C001092.yaml | 6 +- members/C001093.yaml | 12 ---- members/C001096.yaml | 2 + members/C001107.yaml | 2 + members/D000610.yaml | 2 + members/D000612.yaml | 2 + members/D000615.yaml | 2 + members/D000616.yaml | 2 + members/D000621.yaml | 2 + members/E000179.yaml | 2 + members/F000448.yaml | 8 +-- members/F000450.yaml | 2 + members/F000460.yaml | 2 + members/F000461.yaml | 2 + members/G000377.yaml | 2 + members/G000553.yaml | 2 + members/G000558.yaml | 2 + members/G000563.yaml | 6 +- members/G000566.yaml | 2 + members/G000574.yaml | 2 + members/G000575.yaml | 2 + members/G000577.yaml | 2 + members/H000324.yaml | 3 +- members/H001036.yaml | 2 + members/H001048.yaml | 2 + members/H001057.yaml | 2 + members/H001060.yaml | 2 + members/H001065.yaml | 16 ++--- members/H001070.yaml | 2 + members/H001071.yaml | 2 + members/H001072.yaml | 2 + members/H001073.yaml | 2 + members/J000126.yaml | 2 + members/J000174.yaml | 2 + members/J000255.yaml | 2 + members/J000288.yaml | 8 +-- members/J000295.yaml | 2 + members/K000387.yaml | 2 + members/K000388.yaml | 2 + members/L000287.yaml | 8 +-- members/L000569.yaml | 2 + members/L000571.yaml | 2 + members/L000573.yaml | 8 +-- members/L000583.yaml | 2 + members/M001157.yaml | 2 + members/M001166.yaml | 2 + members/M001184.yaml | 2 + members/M001191.yaml | 2 + members/M001195.yaml | 2 + members/N000147.yaml | 8 +-- members/N000184.yaml | 2 + members/N000185.yaml | 2 + members/N000188.yaml | 2 + members/N000189.yaml | 2 + members/O000168.yaml | 2 + members/O000170.yaml | 2 + members/P000588.yaml | 2 + members/P000599.yaml | 2 + members/P000605.yaml | 2 + members/P000609.yaml | 2 + members/R000435.yaml | 2 +- members/R000580.yaml | 6 +- members/R000583.yaml | 2 + members/R000588.yaml | 2 + members/R000593.yaml | 2 + members/R000601.yaml | 2 + members/R000604.yaml | 2 + members/S000030.yaml | 2 + members/S000051.yaml | 2 + members/S000248.yaml | 2 + members/S000250.yaml | 5 +- members/S000364.yaml | 2 + members/S001165.yaml | 2 + members/S001176.yaml | 2 + members/S001187.yaml | 2 + members/S001192.yaml | 2 + members/S001195.yaml | 6 +- members/T000193.yaml | 2 + members/T000238.yaml | 2 + members/T000462.yaml | 163 ++++++++++++++++++++++++++++--------------- members/T000463.yaml | 2 + members/T000467.yaml | 2 + members/T000472.yaml | 2 + members/T000474.yaml | 2 + members/V000108.yaml | 2 + members/V000130.yaml | 2 + members/V000131.yaml | 2 + members/W000187.yaml | 6 +- members/W000795.yaml | 2 + members/W000804.yaml | 2 + members/W000810.yaml | 8 +-- members/W000819.yaml | 2 + members/W000820.yaml | 4 +- members/Y000033.yaml | 2 + members/Y000063.yaml | 2 + members/Y000066.yaml | 2 + 123 files changed, 381 insertions(+), 153 deletions(-) diff --git a/members/A000055.yaml b/members/A000055.yaml index 161da60c9..080b98b40 100644 --- a/members/A000055.yaml +++ b/members/A000055.yaml @@ -84,6 +84,8 @@ contact_form: Other Issue: OTHER - javascript: - value: document.querySelector("#required-message").value = document.querySelector("#required-message").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - selector: "#block-system-main form.bootstrap button.btn.btn-success" success: diff --git a/members/A000367.yaml b/members/A000367.yaml index a86c56e55..2663a0a48 100644 --- a/members/A000367.yaml +++ b/members/A000367.yaml @@ -106,6 +106,8 @@ contact_form: required: Yes - javascript: - value: document.querySelector("#required-message").value = document.querySelector("#required-message").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - value: "Send Email" selector: "#submit" diff --git a/members/A000373.yaml b/members/A000373.yaml index 82cb1ca02..5fa9f659a 100644 --- a/members/A000373.yaml +++ b/members/A000373.yaml @@ -116,6 +116,8 @@ contact_form: No, I wanted to voice my opinion: N - javascript: - value: document.querySelector("#required-message").value = document.querySelector("#required-message").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - value: Send Email to Representative Ashford selector: "#contactForm #submit" diff --git a/members/B000213.yaml b/members/B000213.yaml index 1cb95d956..2aae75b63 100644 --- a/members/B000213.yaml +++ b/members/B000213.yaml @@ -59,6 +59,11 @@ contact_form: selector: "#req_message" value: $MESSAGE required: true + - name: captcha + selector: "#captchaTextBox" + captcha_selector: "#captchaImage" + value: $CAPTCHA_SOLUTION + required: true - select: - name: prefix selector: "#req_prefix" diff --git a/members/B000755.yaml b/members/B000755.yaml index d66036b33..c58f2980f 100644 --- a/members/B000755.yaml +++ b/members/B000755.yaml @@ -120,6 +120,8 @@ contact_form: WEP / GPO: "120681" - javascript: - value: document.querySelector("#ctl00_ctl17_Body").value = document.querySelector("#ctl00_ctl17_Body").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - value: Submit selector: "#ctl00_ctl17_SubmitButton" diff --git a/members/B001243.yaml b/members/B001243.yaml index e4b094cc2..24a7c668e 100644 --- a/members/B001243.yaml +++ b/members/B001243.yaml @@ -118,6 +118,8 @@ contact_form: - VI - javascript: - value: document.querySelector("#ctl00_ctl13_Body").value = document.querySelector("#ctl00_ctl13_Body").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - value: Submit selector: "#ctl00_ctl13_SubmitButton" diff --git a/members/B001248.yaml b/members/B001248.yaml index 8a3e24a25..915395341 100644 --- a/members/B001248.yaml +++ b/members/B001248.yaml @@ -17,47 +17,47 @@ contact_form: - value: Submit selector: "form.zipform input[type='submit'][value='Submit']" - find: - - selector: "#ctl00_ctl03_ctl00_Text form input[name='required-prefix']" + - selector: "#ctl00_ctl11_ctl00_Text form input[name='required-prefix']" - fill_in: - name: required-prefix - selector: "#ctl00_ctl03_ctl00_Text form input[name='required-prefix']" + selector: "#ctl00_ctl11_ctl00_Text form input[name='required-prefix']" value: $NAME_PREFIX required: true - name: required-first - selector: "#ctl00_ctl03_ctl00_Text form input[name='required-first']" + selector: "#ctl00_ctl11_ctl00_Text form input[name='required-first']" value: $NAME_FIRST required: true - name: required-last - selector: "#ctl00_ctl03_ctl00_Text form input[name='required-last']" + selector: "#ctl00_ctl11_ctl00_Text form input[name='required-last']" value: $NAME_LAST required: true - name: required-address - selector: "#ctl00_ctl03_ctl00_Text form input[name='required-address']" + selector: "#ctl00_ctl11_ctl00_Text form input[name='required-address']" value: $ADDRESS_STREET required: true - name: required-city - selector: "#ctl00_ctl03_ctl00_Text form input[name='required-city']" + selector: "#ctl00_ctl11_ctl00_Text form input[name='required-city']" value: $ADDRESS_CITY required: true - name: required-phone - selector: "#ctl00_ctl03_ctl00_Text form input[name='required-phone']" + selector: "#ctl00_ctl11_ctl00_Text form input[name='required-phone']" value: $PHONE required: true - name: required-email - selector: "#ctl00_ctl03_ctl00_Text form input[name='required-email']" + selector: "#ctl00_ctl11_ctl00_Text form input[name='required-email']" value: $EMAIL required: true - name: required-message - selector: "#ctl00_ctl03_ctl00_Text form textarea[name='required-message']" + selector: "#ctl00_ctl11_ctl00_Text form textarea[name='required-message']" value: $MESSAGE required: true - javascript: - - value: document.querySelector("#ctl00_ctl03_ctl00_Text form textarea[name='required-message']").value = document.querySelector("#ctl00_ctl03_ctl00_Text form textarea[name='required-message']").value.replace(/"/g, ''); + - value: document.querySelector("#ctl00_ctl11_ctl00_Text form textarea[name='required-message']").value = document.querySelector("#ctl00_ctl11_ctl00_Text form textarea[name='required-message']").value.replace(/"/g, ''); - click_on: - value: Send Email - selector: "#ctl00_ctl03_ctl00_Text form input[type='submit'][value='Send Email']" + selector: "#ctl00_ctl11_ctl00_Text form input[type='submit'][value='Send Email']" - find: - - selector: "span#ctl00_ctl03_ctl00_Text" + - selector: "span#ctl00_ctl11_ctl00_Text" value: "Thank you for submitting your comments, I appreciate hearing from you." success: headers: diff --git a/members/B001251.yaml b/members/B001251.yaml index 55929cc9e..2da0adea1 100644 --- a/members/B001251.yaml +++ b/members/B001251.yaml @@ -104,6 +104,8 @@ contact_form: "No, I wanted to voice my opinion": "N" - javascript: - value: document.querySelector("#required-message").value = document.querySelector("#required-message").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - value: Send Email selector: "#submit" diff --git a/members/B001273.yaml b/members/B001273.yaml index 5b395b8e4..696140e76 100644 --- a/members/B001273.yaml +++ b/members/B001273.yaml @@ -87,6 +87,8 @@ contact_form: value: TEST - javascript: - value: document.querySelector("#required-message").value = document.querySelector("#required-message").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - value: Send Email selector: "#submit" diff --git a/members/B001274.yaml b/members/B001274.yaml index 2f03fcf0d..6ff421658 100644 --- a/members/B001274.yaml +++ b/members/B001274.yaml @@ -116,6 +116,8 @@ contact_form: "No, I wanted to voice my opinion": "N" - javascript: - value: document.querySelector("#required-message").value = document.querySelector("#required-message").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - selector: "#submit" - find: diff --git a/members/B001282.yaml b/members/B001282.yaml index 2577077e3..2a93b7ad8 100644 --- a/members/B001282.yaml +++ b/members/B001282.yaml @@ -117,6 +117,8 @@ contact_form: "No, I wanted to voice my opinion": "N" - javascript: - value: document.querySelector("#required-message").value = document.querySelector("#required-message").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - value: Send Email selector: "#contactForm input[name='submit']" diff --git a/members/B001283.yaml b/members/B001283.yaml index 137841d27..d53c702b5 100644 --- a/members/B001283.yaml +++ b/members/B001283.yaml @@ -100,6 +100,8 @@ contact_form: value: Respond - javascript: - value: document.querySelector("#ctl00_ctl15_Body").value = document.querySelector("#ctl00_ctl15_Body").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - value: Submit selector: "#ctl00_ctl15_SubmitButton" diff --git a/members/B001284.yaml b/members/B001284.yaml index 9e56de844..280238323 100644 --- a/members/B001284.yaml +++ b/members/B001284.yaml @@ -115,6 +115,8 @@ contact_form: No, I wanted to voice my opinion: N - javascript: - value: document.querySelector("#required-message").value = document.querySelector("#required-message").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - value: Send Email selector: "#contactForm input[name='submit']" diff --git a/members/B001291.yaml b/members/B001291.yaml index 6dffdd8a1..6f17d3a78 100644 --- a/members/B001291.yaml +++ b/members/B001291.yaml @@ -132,6 +132,8 @@ contact_form: value: Respond - javascript: - value: document.querySelector("#ctl00_ctl13_Body").value = document.querySelector("#ctl00_ctl13_Body").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - value: Submit selector: "#ctl00_ctl13_SubmitButton" diff --git a/members/B001294.yaml b/members/B001294.yaml index a4f2ec023..57275dec2 100644 --- a/members/B001294.yaml +++ b/members/B001294.yaml @@ -178,6 +178,8 @@ contact_form: selector: "#ctl00_ctl09_SubscribeChoice" - javascript: - value: document.querySelector("#ctl00_ctl09_Body").value = document.querySelector("#ctl00_ctl09_Body").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - value: Submit selector: "#ctl00_ctl09_SubmitButton" diff --git a/members/C000266.yaml b/members/C000266.yaml index 8500c9252..c567dd321 100644 --- a/members/C000266.yaml +++ b/members/C000266.yaml @@ -57,6 +57,8 @@ contact_form: value: Respond - javascript: - value: document.querySelector("#ctl00_ctl16_Body").value = document.querySelector("#ctl00_ctl16_Body").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - value: Submit selector: "#ctl00_ctl16_SubmitButton" diff --git a/members/C000754.yaml b/members/C000754.yaml index 50070e68a..5f02f15af 100644 --- a/members/C000754.yaml +++ b/members/C000754.yaml @@ -105,6 +105,8 @@ contact_form: Other Issues: OTHER - javascript: - value: document.querySelector("#required-message").value = document.querySelector("#required-message").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - value: Send Email selector: "#contactForm input[name='submit']" diff --git a/members/C001045.yaml b/members/C001045.yaml index 7603d8fef..028074f44 100644 --- a/members/C001045.yaml +++ b/members/C001045.yaml @@ -47,6 +47,8 @@ contact_form: required: true - javascript: - value: document.querySelector("#field_AD3C2CD1-4332-48E1-A080-BB1B4B5F082C").value = document.querySelector("#field_AD3C2CD1-4332-48E1-A080-BB1B4B5F082C").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - value: Submit selector: div.buttonHolder input diff --git a/members/C001049.yaml b/members/C001049.yaml index 6f6785044..5cda03208 100644 --- a/members/C001049.yaml +++ b/members/C001049.yaml @@ -14,8 +14,7 @@ contact_form: value: $ADDRESS_ZIP4 required: true - click_on: - - - selector: "#submit" + - selector: "#submit" - fill_in: - name: required-first selector: "#required-first" @@ -118,8 +117,7 @@ contact_form: - recaptcha: - value: true - click_on: - - - selector: "#submit" + - selector: "#submit" success: headers: status: 200 diff --git a/members/C001053.yaml b/members/C001053.yaml index af004999b..dafb2c366 100644 --- a/members/C001053.yaml +++ b/members/C001053.yaml @@ -137,6 +137,8 @@ contact_form: Tribal Relations: "108446" - javascript: - value: document.querySelector("#ctl00_ctl16_Body").value = document.querySelector("#ctl00_ctl16_Body").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - value: Submit selector: "#ctl00_ctl16_SubmitButton" diff --git a/members/C001063.yaml b/members/C001063.yaml index 84c9b680b..9220a59ef 100644 --- a/members/C001063.yaml +++ b/members/C001063.yaml @@ -180,6 +180,8 @@ contact_form: Water Resources Development Act of 2010: "8397" Welfare: "107345" "Women's Issues": "5236" + - recaptcha: + - value: true - click_on: - value: Submit selector: "#ctl00_ctl15_SubmitButton" diff --git a/members/C001068.yaml b/members/C001068.yaml index fbcc7c84d..0cc90bd15 100644 --- a/members/C001068.yaml +++ b/members/C001068.yaml @@ -16,8 +16,7 @@ contact_form: value: $ADDRESS_ZIP4 required: true - click_on: - - - selector: "#submit" + - selector: "#submit" - 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: @@ -119,9 +118,10 @@ contact_form: "No, I wanted to voice my opinion": "N" - javascript: - value: document.querySelector("#required-message").value = document.querySelector("#required-message").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - - - selector: "#submit" + - selector: "#submit" - wait: - value: 3 - find: diff --git a/members/C001072.yaml b/members/C001072.yaml index 110d036b0..1ea78fadb 100644 --- a/members/C001072.yaml +++ b/members/C001072.yaml @@ -125,6 +125,8 @@ contact_form: "No, I wanted to voice my opinion": "N" - javascript: - value: document.querySelector("#required-message").value = document.querySelector("#required-message").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - value: Send Email to Representative Carson selector: "#submit" diff --git a/members/C001076.yaml b/members/C001076.yaml index 51e0354ec..ac8b0843c 100644 --- a/members/C001076.yaml +++ b/members/C001076.yaml @@ -87,6 +87,8 @@ contact_form: value: Respond - javascript: - value: document.querySelector("#ctl00_ctl16_Body").value = document.querySelector("#ctl00_ctl16_Body").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - value: Submit selector: "#ctl00_ctl16_SubmitButton" diff --git a/members/C001077.yaml b/members/C001077.yaml index 7b446f847..0dd8fc0f0 100644 --- a/members/C001077.yaml +++ b/members/C001077.yaml @@ -114,6 +114,8 @@ contact_form: Other Issues: OTHER - javascript: - value: document.querySelector("#required-message").value = document.querySelector("#required-message").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - value: Send Email selector: "#contactForm input[name='submit']" diff --git a/members/C001090.yaml b/members/C001090.yaml index afe83d644..e5b083c32 100644 --- a/members/C001090.yaml +++ b/members/C001090.yaml @@ -175,6 +175,8 @@ contact_form: value: Respond - javascript: - value: document.querySelector("#ctl00_ctl08_Body").value = document.querySelector("#ctl00_ctl08_Body").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - value: Submit selector: "#ctl00_ctl08_SubmitButton" diff --git a/members/C001091.yaml b/members/C001091.yaml index 12cfc6b6d..30a21d350 100644 --- a/members/C001091.yaml +++ b/members/C001091.yaml @@ -14,8 +14,7 @@ contact_form: value: $ADDRESS_ZIP4 required: true - click_on: - - - selector: "#submit" + - selector: "#submit" - fill_in: - name: required-first selector: "#required-first" @@ -115,9 +114,10 @@ contact_form: "No, I wanted to voice my opinion": "N" - javascript: - value: document.querySelector("#required-message").value = document.querySelector("#required-message").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - - - selector: "#submit" + - selector: "#submit" success: headers: status: 200 diff --git a/members/C001092.yaml b/members/C001092.yaml index 42045e1c7..afbfdc680 100644 --- a/members/C001092.yaml +++ b/members/C001092.yaml @@ -16,8 +16,7 @@ contact_form: - javascript: - value: "Array.prototype.forEach.call(document.querySelectorAll('style,[rel=\"stylesheet\"],[type=\"text/css\"]'), function(element){ try{ element.parentNode.removeChild(element) } catch(err){} });" - click_on: - - - selector: "#submit" + - selector: "#submit" - fill_in: - name: required-first selector: "#required-first" @@ -122,8 +121,7 @@ contact_form: - recaptcha: - value: true - click_on: - - - selector: "#submit" + - selector: "#submit" success: headers: status: 200 diff --git a/members/C001093.yaml b/members/C001093.yaml index 92b8b9a2b..3ba2e49f9 100644 --- a/members/C001093.yaml +++ b/members/C001093.yaml @@ -4,18 +4,6 @@ contact_form: action: /email-me/ steps: - visit: "https://dougcollins.house.gov/email-me" - - fill_in: - - name: zipcode - selector: "#zipcode" - value: $ADDRESS_ZIP5 - required: true - - name: zipfour - selector: "#zipfour" - value: $ADDRESS_ZIP4 - required: true - - click_on: - - value: Go to Form - selector: input.button - fill_in: - name: firstname selector: "#req_firstname" diff --git a/members/C001096.yaml b/members/C001096.yaml index 19d2f7f35..7407f64c3 100644 --- a/members/C001096.yaml +++ b/members/C001096.yaml @@ -104,6 +104,8 @@ contact_form: "No, I wanted to voice my opinion": "N" - javascript: - value: document.querySelector("#required-message").value = document.querySelector("#required-message").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - value: Send Email selector: "#contactForm input[name='submit']" diff --git a/members/C001107.yaml b/members/C001107.yaml index 6124e3cbb..ddb6c84a7 100644 --- a/members/C001107.yaml +++ b/members/C001107.yaml @@ -180,6 +180,8 @@ contact_form: selector: "#ctl00_ctl14_SubscribeChoice" - javascript: - value: document.querySelector("#ctl00_ctl14_Body").value = document.querySelector("#ctl00_ctl14_Body").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - value: Submit selector: "#ctl00_ctl14_SubmitButton" diff --git a/members/D000610.yaml b/members/D000610.yaml index 6754af467..7d5c15758 100644 --- a/members/D000610.yaml +++ b/members/D000610.yaml @@ -72,6 +72,8 @@ contact_form: value: Respond - javascript: - value: document.querySelector("#ctl00_ctl10_Body").value = document.querySelector("#ctl00_ctl10_Body").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - value: Submit selector: "#ctl00_ctl10_SubmitButton" diff --git a/members/D000612.yaml b/members/D000612.yaml index a55418f13..818845277 100644 --- a/members/D000612.yaml +++ b/members/D000612.yaml @@ -81,6 +81,8 @@ contact_form: Other Issue: OTH - javascript: - value: document.querySelector("#required-message").value = document.querySelector("#required-message").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - value: Send Email selector: "#contactForm input[name='submit']" diff --git a/members/D000615.yaml b/members/D000615.yaml index c5c3ed8f3..4c61a2e3c 100644 --- a/members/D000615.yaml +++ b/members/D000615.yaml @@ -113,6 +113,8 @@ contact_form: "No": "N" - javascript: - value: document.querySelector("#required-message").value = document.querySelector("#required-message").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - value: Send Email selector: "#submit" diff --git a/members/D000616.yaml b/members/D000616.yaml index 437c71136..1a25efa2e 100644 --- a/members/D000616.yaml +++ b/members/D000616.yaml @@ -94,6 +94,8 @@ contact_form: "No, I wanted to voice my opinion": "N" - javascript: - value: document.querySelector("#required-message").value = document.querySelector("#required-message").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - value: Send Email selector: "#submit" diff --git a/members/D000621.yaml b/members/D000621.yaml index ae5b99681..ab61e96a1 100644 --- a/members/D000621.yaml +++ b/members/D000621.yaml @@ -109,6 +109,8 @@ contact_form: "No, I wanted to voice my opinion": "N" - javascript: - value: document.querySelector("#required-message").value = document.querySelector("#required-message").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - value: Send Email selector: "#contactForm input[name='submit']" diff --git a/members/E000179.yaml b/members/E000179.yaml index ec25cf0a4..54ffa0d87 100644 --- a/members/E000179.yaml +++ b/members/E000179.yaml @@ -108,6 +108,8 @@ contact_form: value: "1" - javascript: - value: document.querySelector("#req_message").value = document.querySelector("#req_message").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - value: Send Email selector: "#submitButton" diff --git a/members/F000448.yaml b/members/F000448.yaml index 0bf4df151..3945249a5 100644 --- a/members/F000448.yaml +++ b/members/F000448.yaml @@ -14,8 +14,7 @@ contact_form: value: $ADDRESS_ZIP4 required: true - click_on: - - - selector: "#submit" + - selector: "#submit" - fill_in: - name: required-first selector: "#required-first" @@ -115,9 +114,10 @@ contact_form: "No, I wanted to voice my opinion": "N" - javascript: - value: document.querySelector("#required-message").value = document.querySelector("#required-message").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - - - selector: "#submit" + - selector: "#submit" success: headers: status: 200 diff --git a/members/F000450.yaml b/members/F000450.yaml index 64f10d396..d6f81b33e 100644 --- a/members/F000450.yaml +++ b/members/F000450.yaml @@ -161,6 +161,8 @@ contact_form: value: Respond - javascript: - value: document.querySelector("#ctl00_ctl13_Body").value = document.querySelector("#ctl00_ctl13_Body").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - value: Submit selector: "#ctl00_ctl13_SubmitButton" diff --git a/members/F000460.yaml b/members/F000460.yaml index f453410ba..40fe89053 100644 --- a/members/F000460.yaml +++ b/members/F000460.yaml @@ -65,6 +65,8 @@ contact_form: required: false - javascript: - value: document.querySelector("#ctl00_ctl19_Body").value = document.querySelector("#ctl00_ctl19_Body").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - value: Submit selector: "#ctl00_ctl19_SubmitButton" diff --git a/members/F000461.yaml b/members/F000461.yaml index e28542cf9..495c4bd18 100644 --- a/members/F000461.yaml +++ b/members/F000461.yaml @@ -94,6 +94,8 @@ contact_form: value: Respond - javascript: - value: document.querySelector("#ctl00_ctl15_Body").value = document.querySelector("#ctl00_ctl15_Body").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - value: Submit selector: "#ctl00_ctl15_SubmitButton" diff --git a/members/G000377.yaml b/members/G000377.yaml index 80afddf4c..f6a12d9b6 100644 --- a/members/G000377.yaml +++ b/members/G000377.yaml @@ -104,6 +104,8 @@ contact_form: Veterans Affairs: WEBVET - javascript: - value: document.querySelector("#required-message").value = document.querySelector("#required-message").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - value: Send Email selector: "#submit" diff --git a/members/G000553.yaml b/members/G000553.yaml index 58a70b1ae..0fe263b38 100644 --- a/members/G000553.yaml +++ b/members/G000553.yaml @@ -97,6 +97,8 @@ contact_form: "Other Issues": "OTH" - javascript: - value: document.querySelector("#required-message").value = document.querySelector("#required-message").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - value: "Send Email" selector: "#submit" diff --git a/members/G000558.yaml b/members/G000558.yaml index a20836ec4..2dbce4517 100644 --- a/members/G000558.yaml +++ b/members/G000558.yaml @@ -247,6 +247,8 @@ contact_form: value: Respond - javascript: - value: document.querySelector("#ctl00_ctl14_Body").value = document.querySelector("#ctl00_ctl14_Body").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - value: Submit selector: "#ctl00_ctl14_SubmitButton" diff --git a/members/G000563.yaml b/members/G000563.yaml index ac4d43092..92b81b46f 100644 --- a/members/G000563.yaml +++ b/members/G000563.yaml @@ -14,8 +14,7 @@ contact_form: value: $ADDRESS_ZIP4 required: true - click_on: - - - selector: "#submit" + - selector: "#submit" - fill_in: - name: required-first selector: "#required-first" @@ -118,8 +117,7 @@ contact_form: - recaptcha: - value: true - click_on: - - - selector: "#submit" + - selector: "#submit" success: headers: status: 200 diff --git a/members/G000566.yaml b/members/G000566.yaml index b46515021..4412534d8 100644 --- a/members/G000566.yaml +++ b/members/G000566.yaml @@ -106,6 +106,8 @@ contact_form: - value: "document.querySelector('#ctl00_ctl34_ReplyChoice_0').checked=true" - javascript: - value: document.querySelector("#ctl00_ctl34_Body").value = document.querySelector("#ctl00_ctl34_Body").value.replace(/"/g, ''); + - recaptcha: + - value: true - javascript: - value: "document.querySelector('#ctl00_ctl34_SubmitButton').click()" - find: diff --git a/members/G000574.yaml b/members/G000574.yaml index aca4b7cc0..4eb9f04b6 100644 --- a/members/G000574.yaml +++ b/members/G000574.yaml @@ -117,6 +117,8 @@ contact_form: No, I wanted to voice my opinion: N - javascript: - value: document.querySelector("#required-message").value = document.querySelector("#required-message").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - value: Send Email to Representative Gallego selector: "#contactForm[action='/htbin/formproc/email.txt%26display%3D/contact/email/email-sent%26nobase%26fpGetVer%3D2'] #submit" diff --git a/members/G000575.yaml b/members/G000575.yaml index 07accc1b9..891e1e058 100644 --- a/members/G000575.yaml +++ b/members/G000575.yaml @@ -120,6 +120,8 @@ contact_form: No, I wanted to voice my opinion: N - javascript: - value: document.querySelector("#required-message").value = document.querySelector("#required-message").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - selector: "#contactForm[action='/htbin/formproc/email.txt%26display%3D/contact/email/email-sent%26nobase%26fpGetVer%3D2'] #submit" success: diff --git a/members/G000577.yaml b/members/G000577.yaml index 76a34a587..c66795e5d 100644 --- a/members/G000577.yaml +++ b/members/G000577.yaml @@ -111,6 +111,8 @@ contact_form: "No, I wanted to voice my opinion": "N" - javascript: - value: document.querySelector("#required-message").value = document.querySelector("#required-message").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - selector: "#submit" - find: diff --git a/members/H000324.yaml b/members/H000324.yaml index aa203a6f2..5e7df20bf 100644 --- a/members/H000324.yaml +++ b/members/H000324.yaml @@ -37,13 +37,14 @@ contact_form: selector: "#ctl00_ctl14_Body" value: $MESSAGE required: true - - select: [] - check: - name: ctl00$ctl14$ReplyChoice selector: "#ctl00_ctl14_ReplyChoice_0" value: Respond - javascript: - value: document.querySelector("#ctl00_ctl14_Body").value = document.querySelector("#ctl00_ctl14_Body").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - value: Submit selector: "#ctl00_ctl14_SubmitButton" diff --git a/members/H001036.yaml b/members/H001036.yaml index 83ebd6cef..6423d5345 100644 --- a/members/H001036.yaml +++ b/members/H001036.yaml @@ -127,6 +127,8 @@ contact_form: value: Comment - javascript: - value: document.querySelector("#ctl00_ctl20_Body").value = document.querySelector("#ctl00_ctl20_Body").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - value: Submit selector: "#ctl00_ctl20_SubmitButton" diff --git a/members/H001048.yaml b/members/H001048.yaml index f68889dfd..3bedf4a66 100644 --- a/members/H001048.yaml +++ b/members/H001048.yaml @@ -77,6 +77,8 @@ contact_form: Other: OTH - javascript: - value: document.querySelector("#required-message").value = document.querySelector("#required-message").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - selector: "button.ideal-button" success: diff --git a/members/H001057.yaml b/members/H001057.yaml index 84a91a26c..59a611cdf 100644 --- a/members/H001057.yaml +++ b/members/H001057.yaml @@ -99,6 +99,8 @@ contact_form: "No, I wanted to voice my opinion": "N" - javascript: - value: document.querySelector("#required-message").value = document.querySelector("#required-message").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - value: Send Email selector: "#contactForm input[name='submit']" diff --git a/members/H001060.yaml b/members/H001060.yaml index 56100b8a1..e5ca14f72 100644 --- a/members/H001060.yaml +++ b/members/H001060.yaml @@ -91,6 +91,8 @@ contact_form: value: "1" - javascript: - value: document.querySelector("#field_59E68B70-1F23-4B9A-A19C-E40156896A9B").value = document.querySelector("#field_59E68B70-1F23-4B9A-A19C-E40156896A9B").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - value: Submit selector: div.buttonHolder input diff --git a/members/H001065.yaml b/members/H001065.yaml index 5dc878b29..41042e795 100644 --- a/members/H001065.yaml +++ b/members/H001065.yaml @@ -1,23 +1,23 @@ bioguide: H001065 contact_form: method: post - action: "/htbin/formproc_za/zip-auth.txt%26form%3D/contact/email-me/email-me-zip-authenticated%26nobase%26fpGetVer%3D2" + action: "/contact/contactform.htm" steps: - - visit: "https://holding.house.gov/contact/email-me" + - visit: "http://holding.house.gov/contact/email-me/" - fill_in: - - name: required-zip5 - selector: "#required-zip5" + - name: zip5 + selector: ".zipform input[name='zip5']" value: $ADDRESS_ZIP5 required: true - name: zip4 - selector: "#zip4" + selector: ".zipform input[name='zip4']" value: $ADDRESS_ZIP4 required: true - click_on: - - value: Go To Next Step - selector: "#submit" + - value: Submit + selector: ".zipform input[type='submit'][value='Submit']" - find: - - selector: "#required-prefix" + - selector: "#ctl00_ctl19_FirstName" - fill_in: - name: required-prefix selector: "#required-prefix" diff --git a/members/H001070.yaml b/members/H001070.yaml index e042e1473..aec6f44ef 100644 --- a/members/H001070.yaml +++ b/members/H001070.yaml @@ -71,6 +71,8 @@ contact_form: - Dr. - javascript: - value: document.querySelector("#ctl00_ctl09_Body").value = document.querySelector("#ctl00_ctl09_Body").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - value: Submit selector: "#ctl00_ctl09_SubmitButton" diff --git a/members/H001071.yaml b/members/H001071.yaml index db5ec04de..2af8e1813 100644 --- a/members/H001071.yaml +++ b/members/H001071.yaml @@ -109,6 +109,8 @@ contact_form: value: Respond - javascript: - value: document.querySelector("#ctl00_ctl11_Body").value = document.querySelector("#ctl00_ctl11_Body").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - value: Submit selector: "#ctl00_ctl11_SubmitButton" diff --git a/members/H001072.yaml b/members/H001072.yaml index 9fdbba660..06d3327ba 100644 --- a/members/H001072.yaml +++ b/members/H001072.yaml @@ -178,6 +178,8 @@ contact_form: selector: "#ctl00_ctl09_SubscribeChoice" - javascript: - value: document.querySelector("#ctl00_ctl09_Body").value = document.querySelector("#ctl00_ctl09_Body").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - value: Submit selector: "#ctl00_ctl09_SubmitButton" diff --git a/members/H001073.yaml b/members/H001073.yaml index 2c0985248..b746507b5 100644 --- a/members/H001073.yaml +++ b/members/H001073.yaml @@ -121,6 +121,8 @@ contact_form: "No, do not contact me": "N" - javascript: - value: document.querySelector("#required-message").value = document.querySelector("#required-message").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - value: Send Email to Representative Hurd selector: "#contactForm #submit" diff --git a/members/J000126.yaml b/members/J000126.yaml index 4fd92fea4..eee24817b 100644 --- a/members/J000126.yaml +++ b/members/J000126.yaml @@ -114,6 +114,8 @@ contact_form: "No, I wanted to voice my opinion": "N" - javascript: - value: document.querySelector("#required-message").value = document.querySelector("#required-message").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - value: Send Email selector: "#contactForm input[name='submit']" diff --git a/members/J000174.yaml b/members/J000174.yaml index 8d0a7d068..97303d746 100644 --- a/members/J000174.yaml +++ b/members/J000174.yaml @@ -72,6 +72,8 @@ contact_form: value: Respond - javascript: - value: document.querySelector("#ctl00_ctl14_Body").value = document.querySelector("#ctl00_ctl14_Body").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - value: Submit selector: "#ctl00_ctl14_SubmitButton" diff --git a/members/J000255.yaml b/members/J000255.yaml index b56013cd0..7ae982e24 100644 --- a/members/J000255.yaml +++ b/members/J000255.yaml @@ -101,6 +101,8 @@ contact_form: Other Issues: OTHER - javascript: - value: document.querySelector("#required-message").value = document.querySelector("#required-message").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - value: Send Email selector: "#submit" diff --git a/members/J000288.yaml b/members/J000288.yaml index 4b1fe63a4..a41cee3f3 100644 --- a/members/J000288.yaml +++ b/members/J000288.yaml @@ -14,8 +14,7 @@ contact_form: value: $ADDRESS_ZIP4 required: true - click_on: - - - selector: "#submit" + - selector: "#submit" - fill_in: - name: required-first selector: "#required-first" @@ -115,9 +114,10 @@ contact_form: "No, I wanted to voice my opinion": "N" - javascript: - value: document.querySelector("#required-message").value = document.querySelector("#required-message").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - - - selector: "#submit" + - selector: "#submit" success: headers: status: 200 diff --git a/members/J000295.yaml b/members/J000295.yaml index be1e1a983..3b23ea695 100644 --- a/members/J000295.yaml +++ b/members/J000295.yaml @@ -144,6 +144,8 @@ contact_form: Other Issues: OTH - javascript: - value: document.querySelector("#req_message").value = document.querySelector("#req_message").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - value: Send Email selector: "#submitButton" diff --git a/members/K000387.yaml b/members/K000387.yaml index 13c0ff5a7..db2f32791 100644 --- a/members/K000387.yaml +++ b/members/K000387.yaml @@ -103,6 +103,8 @@ contact_form: Water Resources Development: "10528" - javascript: - value: "document.getElementById('ctl00_ctl11_ReplyChoice_0').checked = true;" + - recaptcha: + - value: true - javascript: - value: "document.querySelector('#ctl00_ctl11_SubmitButton').click();" - find: diff --git a/members/K000388.yaml b/members/K000388.yaml index 6ce728e99..bc783aced 100644 --- a/members/K000388.yaml +++ b/members/K000388.yaml @@ -65,6 +65,8 @@ contact_form: value: "Respond" - javascript: - value: document.querySelector("#ctl00_ctl19_Body").value = document.querySelector("#ctl00_ctl19_Body").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - value: "Submit" selector: "#ctl00_ctl19_SubmitButton" diff --git a/members/L000287.yaml b/members/L000287.yaml index db39f9f01..d7d575119 100644 --- a/members/L000287.yaml +++ b/members/L000287.yaml @@ -3,7 +3,7 @@ contact_form: method: post action: "/htbin/formproc_za/zip-auth.txt%26form%3D/contact-me/email/email-zip-authenticated%26nobase%26fpGetVer%3D2" steps: - - visit: "https://johnlewis.house.gov/contact-me" + - visit: "https://johnlewis.house.gov/contact-me/email" - fill_in: - name: required-zip5 selector: "#required-zip5" @@ -14,8 +14,7 @@ contact_form: value: $ADDRESS_ZIP4 required: true - click_on: - - - selector: "#submit" + - selector: "#submit" - fill_in: - name: required-first selector: "#required-first" @@ -116,8 +115,7 @@ contact_form: - javascript: - value: document.querySelector("#required-message").value = document.querySelector("#required-message").value.replace(/"/g, ''); - click_on: - - - selector: "#submit" + - selector: "#submit" - find: - selector: "#block-system-main span.data" success: diff --git a/members/L000569.yaml b/members/L000569.yaml index bceb1ab90..f9bf9d976 100644 --- a/members/L000569.yaml +++ b/members/L000569.yaml @@ -158,6 +158,8 @@ contact_form: Water Resources Development: "47896" - javascript: - value: document.querySelector("#ctl00_ctl09_Body").value = document.querySelector("#ctl00_ctl09_Body").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - value: Submit selector: "#ctl00_ctl09_SubmitButton" diff --git a/members/L000571.yaml b/members/L000571.yaml index 9e43990fb..092271eac 100644 --- a/members/L000571.yaml +++ b/members/L000571.yaml @@ -115,6 +115,8 @@ contact_form: - VI - javascript: - value: document.querySelector("#ctl00_ctl09_Body").value = document.querySelector("#ctl00_ctl09_Body").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - value: Submit selector: "#ctl00_ctl09_SubmitButton" diff --git a/members/L000573.yaml b/members/L000573.yaml index 894537965..2682e31f5 100644 --- a/members/L000573.yaml +++ b/members/L000573.yaml @@ -4,12 +4,8 @@ contact_form: action: /email-me/ steps: - visit: "https://labradorforms.house.gov/email-me" - - wait: - - value: 3 - - click_on: - - selector: "div.pp_pic_holder.pp_default div.pp_fade div.pp_details a.pp_close" - - wait: - - value: 3 + - 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: firstname selector: "#req_firstname" diff --git a/members/L000583.yaml b/members/L000583.yaml index 25996be2e..782dd6cda 100644 --- a/members/L000583.yaml +++ b/members/L000583.yaml @@ -105,6 +105,8 @@ contact_form: value: Respond - javascript: - value: document.querySelector("#ctl00_ctl19_Body").value = document.querySelector("#ctl00_ctl19_Body").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - value: Submit selector: "#ctl00_ctl19_SubmitButton" diff --git a/members/M001157.yaml b/members/M001157.yaml index b5353e9f7..c51572b4c 100644 --- a/members/M001157.yaml +++ b/members/M001157.yaml @@ -110,6 +110,8 @@ contact_form: "No, I wanted to voice my opinion": "N" - javascript: - value: document.querySelector("#required-message").value = document.querySelector("#required-message").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - value: Send Email selector: "#contactForm input[name='submit']" diff --git a/members/M001166.yaml b/members/M001166.yaml index b32fe4407..c3a554277 100644 --- a/members/M001166.yaml +++ b/members/M001166.yaml @@ -118,6 +118,8 @@ contact_form: "No, I wanted to voice my opinion": "N" - javascript: - value: document.querySelector("#required-message").value = document.querySelector("#required-message").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - value: Send Email selector: "#contactForm input[name='submit']" diff --git a/members/M001184.yaml b/members/M001184.yaml index d4088d78e..880ee0cd1 100644 --- a/members/M001184.yaml +++ b/members/M001184.yaml @@ -100,6 +100,8 @@ contact_form: value: Respond - javascript: - value: document.querySelector("#ctl00_ctl32_Email").value = document.querySelector("#ctl00_ctl32_Email").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - value: Submit selector: "#ctl00_ctl32_SubmitButton" diff --git a/members/M001191.yaml b/members/M001191.yaml index 7959210fa..a9a8c4a21 100644 --- a/members/M001191.yaml +++ b/members/M001191.yaml @@ -104,6 +104,8 @@ contact_form: value: Respond - javascript: - value: document.querySelector("#ctl00_ctl13_Body").value = document.querySelector("#ctl00_ctl13_Body").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - value: Submit selector: "#ctl00_ctl13_SubmitButton" diff --git a/members/M001195.yaml b/members/M001195.yaml index 02168f10b..adedb506f 100644 --- a/members/M001195.yaml +++ b/members/M001195.yaml @@ -112,6 +112,8 @@ contact_form: "No, I wanted to voice my opinion": "N" - javascript: - value: document.querySelector("#required-message").value = document.querySelector("#required-message").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - selector: "#submit" - wait: diff --git a/members/N000147.yaml b/members/N000147.yaml index a793e4b4d..16acbeff3 100644 --- a/members/N000147.yaml +++ b/members/N000147.yaml @@ -14,8 +14,7 @@ contact_form: value: $ADDRESS_ZIP4 required: true - click_on: - - - selector: "#submit" + - selector: "#submit" - fill_in: - name: required-first selector: "#required-first" @@ -115,9 +114,10 @@ contact_form: "No, I wanted to voice my opinion": "N" - javascript: - value: document.querySelector("#required-message").value = document.querySelector("#required-message").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - - - selector: "#submit" + - selector: "#submit" success: headers: status: 200 diff --git a/members/N000184.yaml b/members/N000184.yaml index 80600bcaf..c0f75d8eb 100644 --- a/members/N000184.yaml +++ b/members/N000184.yaml @@ -116,6 +116,8 @@ contact_form: value: EMAIL.OPTIN - javascript: - value: document.querySelector("#field_9DC462DD-C8EB-40B8-AC58-337805FD6D96").value = document.querySelector("#field_9DC462DD-C8EB-40B8-AC58-337805FD6D96").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - value: Submit selector: div.buttonHolder input diff --git a/members/N000185.yaml b/members/N000185.yaml index 47cd606c3..dda681676 100644 --- a/members/N000185.yaml +++ b/members/N000185.yaml @@ -87,6 +87,8 @@ contact_form: "No, I wanted to voice my opinion": "N" - javascript: - value: document.querySelector("#required-message").value = document.querySelector("#required-message").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - value: Send Email selector: "#submit" diff --git a/members/N000188.yaml b/members/N000188.yaml index b76063935..6825e3201 100644 --- a/members/N000188.yaml +++ b/members/N000188.yaml @@ -112,6 +112,8 @@ contact_form: value: Y - javascript: - value: document.querySelector("#required-message").value = document.querySelector("#required-message").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - value: Send Email selector: ".pane-content #contactForm #submit" diff --git a/members/N000189.yaml b/members/N000189.yaml index 24af1ca1c..6a700c4ec 100644 --- a/members/N000189.yaml +++ b/members/N000189.yaml @@ -116,6 +116,8 @@ contact_form: No, I wanted to voice my opinion: N - javascript: - value: document.querySelector("#required-message").value = document.querySelector("#required-message").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - value: Send Email to Representative Newhouse selector: "#contactForm #submit" diff --git a/members/O000168.yaml b/members/O000168.yaml index 59b97982d..c8ad90481 100644 --- a/members/O000168.yaml +++ b/members/O000168.yaml @@ -94,6 +94,8 @@ contact_form: "No, I was voicing my opinion": "N" - javascript: - value: document.querySelector("#required-message").value = document.querySelector("#required-message").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - value: Send Email selector: "#contactForm input[name='submit']" diff --git a/members/O000170.yaml b/members/O000170.yaml index ab2aa74de..5a80ea852 100644 --- a/members/O000170.yaml +++ b/members/O000170.yaml @@ -118,6 +118,8 @@ contact_form: value: Respond - javascript: - value: document.querySelector("#ctl00_ctl08_Body").value = document.querySelector("#ctl00_ctl08_Body").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - value: Submit selector: "#ctl00_ctl08_SubmitButton" diff --git a/members/P000588.yaml b/members/P000588.yaml index 4bf522852..180913d82 100644 --- a/members/P000588.yaml +++ b/members/P000588.yaml @@ -92,6 +92,8 @@ contact_form: Other Issues: OTH - javascript: - value: document.querySelector("#required-message").value = document.querySelector("#required-message").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - value: Send Email selector: "#submit" diff --git a/members/P000599.yaml b/members/P000599.yaml index 378fbb601..40956a086 100644 --- a/members/P000599.yaml +++ b/members/P000599.yaml @@ -132,6 +132,8 @@ contact_form: "Veterans & National Security": "4598" - javascript: - value: document.querySelector("#ctl00_ctl15_Body").value = document.querySelector("#ctl00_ctl15_Body").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - value: Submit selector: "#ctl00_ctl15_SubmitButton" diff --git a/members/P000605.yaml b/members/P000605.yaml index 32cb6e485..0090fd010 100644 --- a/members/P000605.yaml +++ b/members/P000605.yaml @@ -183,6 +183,8 @@ contact_form: value: Respond - javascript: - value: document.querySelector("#ctl00_ctl14_Body").value = document.querySelector("#ctl00_ctl14_Body").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - value: Submit selector: "#ctl00_ctl14_SubmitButton" diff --git a/members/P000609.yaml b/members/P000609.yaml index c69c1944c..28d5f4aca 100644 --- a/members/P000609.yaml +++ b/members/P000609.yaml @@ -120,6 +120,8 @@ contact_form: No, I wanted to voice my opinion: N - javascript: - value: document.querySelector("#required-message").value = document.querySelector("#required-message").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - value: Send Email to Representative Palmer selector: "#contactForm[action='/htbin/formproc/email.txt%26display%3D/contact/email/email-sent%26nobase%26fpGetVer%3D2'] #submit" diff --git a/members/R000435.yaml b/members/R000435.yaml index 466175ae0..15ee46477 100644 --- a/members/R000435.yaml +++ b/members/R000435.yaml @@ -44,7 +44,7 @@ contact_form: - name: phone selector: "#phone" value: $PHONE - required: false + required: true - name: required-subject selector: "#required-subject" value: $SUBJECT diff --git a/members/R000580.yaml b/members/R000580.yaml index 60cf5814e..00e8b5371 100644 --- a/members/R000580.yaml +++ b/members/R000580.yaml @@ -14,8 +14,7 @@ contact_form: value: $ADDRESS_ZIP4 required: true - click_on: - - - selector: "#submit" + - selector: "#submit" - 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: @@ -120,8 +119,7 @@ contact_form: - recaptcha: - value: true - click_on: - - - selector: "#submit" + - selector: "#submit" success: headers: status: 200 diff --git a/members/R000583.yaml b/members/R000583.yaml index b756228a2..56c7ea578 100644 --- a/members/R000583.yaml +++ b/members/R000583.yaml @@ -81,6 +81,8 @@ contact_form: value: "Y" - javascript: - value: document.querySelector("#required-message").value = document.querySelector("#required-message").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - value: Send Email selector: "#submit" diff --git a/members/R000588.yaml b/members/R000588.yaml index f79792e83..a98a82f99 100644 --- a/members/R000588.yaml +++ b/members/R000588.yaml @@ -126,6 +126,8 @@ contact_form: "No, I wanted to voice my opinion": "N" - javascript: - value: document.querySelector("#required-message").value = document.querySelector("#required-message").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - selector: "#submit" success: diff --git a/members/R000593.yaml b/members/R000593.yaml index 4fcb4741a..20e0f5cae 100644 --- a/members/R000593.yaml +++ b/members/R000593.yaml @@ -127,6 +127,8 @@ contact_form: value: Respond - javascript: - value: document.querySelector("#ctl00_ctl02_Body").value = document.querySelector("#ctl00_ctl02_Body").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - value: Submit selector: "#ctl00_ctl02_SubmitButton" diff --git a/members/R000601.yaml b/members/R000601.yaml index 83ec8dd87..d0a63729b 100644 --- a/members/R000601.yaml +++ b/members/R000601.yaml @@ -120,6 +120,8 @@ contact_form: No, I wanted to voice my opinion: N - javascript: - value: document.querySelector("#required-message").value = document.querySelector("#required-message").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - value: Send Email to Representative Ratcliffe selector: "#contactForm #submit" diff --git a/members/R000604.yaml b/members/R000604.yaml index 400f5ef95..43cfe2f25 100644 --- a/members/R000604.yaml +++ b/members/R000604.yaml @@ -120,6 +120,8 @@ contact_form: No, I wanted to voice my opinion: N - javascript: - value: document.querySelector("#required-message").value = document.querySelector("#required-message").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - value: Send Email to Representative Russell selector: "#contactForm[action='/htbin/formproc/email.txt%26display%3D/contact/email/email-sent%26nobase%26fpGetVer%3D2'] #submit" diff --git a/members/S000030.yaml b/members/S000030.yaml index 0e0e0e796..f4ed5d92f 100644 --- a/members/S000030.yaml +++ b/members/S000030.yaml @@ -109,6 +109,8 @@ contact_form: selector: "#submit" - javascript: - value: document.querySelector("#required-message").value = document.querySelector("#required-message").value.replace(/"/g, ''); + - recaptcha: + - value: true - javascript: - value: "document.querySelector('#submit').click();" - find: diff --git a/members/S000051.yaml b/members/S000051.yaml index e1d7fef3f..1d8a97c62 100644 --- a/members/S000051.yaml +++ b/members/S000051.yaml @@ -115,6 +115,8 @@ contact_form: "No, I wanted to voice my opinion": "N" - javascript: - value: document.querySelector("#required-message").value = document.querySelector("#required-message").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - selector: "#submit" success: diff --git a/members/S000248.yaml b/members/S000248.yaml index 25ababd18..92ee0dd2a 100644 --- a/members/S000248.yaml +++ b/members/S000248.yaml @@ -103,6 +103,8 @@ contact_form: value: "Y" - javascript: - value: document.querySelector("#required-message").value = document.querySelector("#required-message").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - value: Send Email selector: "#contactForm input[name='submit']" diff --git a/members/S000250.yaml b/members/S000250.yaml index 6663c4231..d3ff0627e 100644 --- a/members/S000250.yaml +++ b/members/S000250.yaml @@ -77,9 +77,10 @@ contact_form: Welfare: WELFARE - javascript: - value: document.querySelector("#required-message").value = document.querySelector("#required-message").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - - - selector: "#submit" + - selector: "#submit" success: headers: status: 200 diff --git a/members/S000364.yaml b/members/S000364.yaml index 52c18f4a9..34d8ee703 100644 --- a/members/S000364.yaml +++ b/members/S000364.yaml @@ -114,6 +114,8 @@ contact_form: "No, I wanted to voice my opinion": "N" - javascript: - value: document.querySelector("#required-message").value = document.querySelector("#required-message").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - value: Send Email selector: "#contactForm input[name='submit']" diff --git a/members/S001165.yaml b/members/S001165.yaml index a1008bfbf..3454e587a 100644 --- a/members/S001165.yaml +++ b/members/S001165.yaml @@ -112,6 +112,8 @@ contact_form: required: true - javascript: - value: document.querySelector("#required-message").value = document.querySelector("#required-message").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - value: Send Email selector: "#contactForm button#submit" diff --git a/members/S001176.yaml b/members/S001176.yaml index 17db62e00..fb305cf6e 100644 --- a/members/S001176.yaml +++ b/members/S001176.yaml @@ -152,6 +152,8 @@ contact_form: value: Respond - javascript: - value: document.querySelector("#ctl00_ctl06_Body").value = document.querySelector("#ctl00_ctl06_Body").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - value: Submit selector: "#ctl00_ctl06_SubmitButton" diff --git a/members/S001187.yaml b/members/S001187.yaml index ee5c85314..5f9e67299 100644 --- a/members/S001187.yaml +++ b/members/S001187.yaml @@ -146,6 +146,8 @@ contact_form: selector: "#ctl00_ctl11_SubscribeChoice" - javascript: - value: document.querySelector("#ctl00_ctl11_Body").value = document.querySelector("#ctl00_ctl11_Body").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - value: Submit selector: "#ctl00_ctl11_SubmitButton" diff --git a/members/S001192.yaml b/members/S001192.yaml index ae8bec2fd..400713616 100644 --- a/members/S001192.yaml +++ b/members/S001192.yaml @@ -105,6 +105,8 @@ contact_form: "Other Issues": "OTHER" - javascript: - value: document.querySelector("#required-message").value = document.querySelector("#required-message").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - value: "Send Email" selector: "#submit" diff --git a/members/S001195.yaml b/members/S001195.yaml index fbfbd21df..ed30a6ff0 100644 --- a/members/S001195.yaml +++ b/members/S001195.yaml @@ -14,8 +14,7 @@ contact_form: value: $ADDRESS_ZIP4 required: true - click_on: - - - selector: "#submit" + - selector: "#submit" - 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: @@ -119,8 +118,7 @@ contact_form: - recaptcha: - value: true - click_on: - - - selector: "#submit" + - selector: "#submit" success: headers: status: 200 diff --git a/members/T000193.yaml b/members/T000193.yaml index 404bb2f60..b3abbb925 100644 --- a/members/T000193.yaml +++ b/members/T000193.yaml @@ -88,6 +88,8 @@ contact_form: value: Unsubscribe - javascript: - value: document.querySelector("#required-message").value = document.querySelector("#required-message").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - value: Send Email selector: "#contactForm input[name='submit2']" diff --git a/members/T000238.yaml b/members/T000238.yaml index 728d0929c..8248cf42d 100644 --- a/members/T000238.yaml +++ b/members/T000238.yaml @@ -73,6 +73,8 @@ contact_form: Veterans: "58094" - javascript: - value: document.querySelector("#ctl00_ctl13_Body").value = document.querySelector("#ctl00_ctl13_Body").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - value: Submit selector: "#ctl00_ctl13_SubmitButton" diff --git a/members/T000462.yaml b/members/T000462.yaml index c81ab17e4..24172906b 100644 --- a/members/T000462.yaml +++ b/members/T000462.yaml @@ -1,93 +1,144 @@ bioguide: T000462 contact_form: method: post - action: /contact.aspx + action: /forms/writeyourrep/ steps: - - visit: "https://tiberi.house.gov/contact/contactform.htm" + - visit: "http://tiberi.house.gov/contact/" - fill_in: - - name: required-first - selector: "#contactForm input[name='required-first']" + - name: zip5 + selector: ".zipform input[name='zip5']" + value: $ADDRESS_ZIP5 + required: true + - name: zip4 + selector: ".zipform input[name='zip4']" + value: $ADDRESS_ZIP4 + required: true + - click_on: + - value: Submit + selector: ".zipform input[type='submit'][value='Submit']" + - find: + - selector: "#ctl00_ctl19_FirstName" + - fill_in: + - name: "ctl00$ctl19$FirstName" + selector: "#ctl00_ctl19_FirstName" value: $NAME_FIRST required: true - - name: required-last - selector: "#contactForm input[name='required-last']" + - name: "ctl00$ctl19$LastName" + selector: "#ctl00_ctl19_LastName" value: $NAME_LAST required: true - - name: required-address - selector: "#contactForm input[name='required-address']" + - name: "ctl00$ctl19$Street" + selector: "#ctl00_ctl19_Street" value: $ADDRESS_STREET required: true - - name: required-city - selector: "#contactForm input[name='required-city']" + - name: "ctl00$ctl19$City" + selector: "#ctl00_ctl19_City" value: $ADDRESS_CITY required: true - - name: zip5 - selector: "#contactForm input[name='zip5']" + - name: "ctl00$ctl19$Zip" + selector: "#ctl00$ctl19$Zip" value: $ADDRESS_ZIP5 required: true - - name: zip4 - selector: "#contactForm input[name='zip4']" - value: $ADDRESS_ZIP4 - required: true - - name: phone - selector: "#contactForm input[name='phone']" + - name: "ctl00$ctl19$Phone" + selector: "#ctl00$ctl19$Phone" value: $PHONE required: true - - name: required-email - selector: "#contactForm input[name='required-email']" + - name: "ctl00$ctl19$Email" + selector: "#ctl00_ctl19_Email" value: $EMAIL required: true - - name: required-message - selector: "#contactForm textarea[name='required-message']" + - name: "ctl00$ctl19$Subject" + selector: "#ctl00_ctl19_Subject" + value: $SUBJECT + required: true + - name: "ctl00$ctl19$Body" + selector: "#ctl00_ctl19_Body" value: $MESSAGE required: true - select: - - name: required-prefix - selector: "#contactForm select[name='required-prefix']" + - name: "ctl00$ctl19$PrefixList" + selector: "#ctl00_ctl19_PrefixList" value: $NAME_PREFIX required: true options: - Mr. - Ms. - Mrs. - - "Mr. & Mrs." - Dr. - - name: required-issue - selector: "#contactForm select[name='required-issue']" - value: $TOPIC + - name: "ctl00$ctl19$State" + selector: "#ctl00_ctl19_State" + value: $ADDRESS_STATE_POSTAL_ABBREV required: true options: - Agriculture: AGRICULTURE - Animal Welfare: ANIMAL_WELFARE - Budget/Spending: BUDGET - Defense/National Security: DEFENSE - Education: EDUCATION - Elections/Campaign Finance: ELECTIONS/CAMPAIGNS - Energy: ENERGY - Environment: ENVIRONMENT - Financial Services: FINANCIAL SERVICES - Foreign Affairs: FOREIGN_AFFAIRS - Healthcare: HEALTH_CARE - Human Rights: HUMAN_RIGHTS - Immigration: IMMIGRATION - Judiciary: JUDICIARY - Pension/Retirement: PENSION REFORM - Postal Reform: POSTAL REFORM - Right to Life: RIGHT_TO_LIFE - Science/Technology: TECH - Social Security: SOCIAL SECURITY - Taxes: TAX - Telecommunications: TELECOMMUNICATIONS - Trade: TRADE - Transportation: TRANSPORTATION - Veterans: VETERANS + - AL + - AK + - AZ + - AR + - CA + - CO + - CT + - DE + - DC + - FL + - GA + - HI + - ID + - IL + - IN + - IA + - KS + - KY + - LA + - ME + - MD + - MA + - MI + - MN + - MS + - MO + - MT + - NE + - NV + - NH + - NJ + - NM + - NY + - NC + - ND + - OH + - OK + - OR + - PA + - RI + - SC + - SD + - TN + - TX + - UT + - VT + - VA + - WA + - WV + - WI + - WY + - AA + - AE + - AP + - FM + - GU + - MH + - MP + - PR + - VI - javascript: - - value: document.querySelector("#contactForm textarea[name='required-message']").value = document.querySelector("#contactForm textarea[name='required-message']").value.replace(/"/g, ''); + - value: document.querySelector("#ctl00_ctl19_Body").value = document.querySelector("#ctl00_ctl19_Body").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - - value: Send Email - selector: "#contactForm input[type='submit'][value='Send Email']" + - value: Submit + selector: "#ctl00_ctl19_SubmitButton" success: headers: status: 200 body: - contains: Thank you for your request. + contains: Thank you for contacting me. diff --git a/members/T000463.yaml b/members/T000463.yaml index 313cdb596..17eb0c710 100644 --- a/members/T000463.yaml +++ b/members/T000463.yaml @@ -79,6 +79,8 @@ contact_form: Veterans Affairs: WEBVET - javascript: - value: document.querySelector("#required-message").value = document.querySelector("#required-message").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - value: Send Email selector: "#contactForm input[name='submit']" diff --git a/members/T000467.yaml b/members/T000467.yaml index 6a18d9c6e..70fd1f534 100644 --- a/members/T000467.yaml +++ b/members/T000467.yaml @@ -99,6 +99,8 @@ contact_form: Other Issues: OTHER - javascript: - value: document.querySelector("#required-message").value = document.querySelector("#required-message").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - value: Send Email selector: "#submit" diff --git a/members/T000472.yaml b/members/T000472.yaml index b4bd196ae..24bdb6fd8 100644 --- a/members/T000472.yaml +++ b/members/T000472.yaml @@ -269,6 +269,8 @@ contact_form: No: "N" - javascript: - value: document.querySelector("#input-36466B2D-9324-A3EC-8F49-33D7F83F9C08").value = document.querySelector("#input-36466B2D-9324-A3EC-8F49-33D7F83F9C08").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - value: Submit selector: "div.controls input.btn" diff --git a/members/T000474.yaml b/members/T000474.yaml index 4c093d3a1..b10f099cc 100644 --- a/members/T000474.yaml +++ b/members/T000474.yaml @@ -177,6 +177,8 @@ contact_form: selector: "#ctl00_ctl09_SubscribeChoice" - javascript: - value: document.querySelector("#ctl00_ctl09_Body").value = document.querySelector("#ctl00_ctl09_Body").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - value: Submit selector: "#ctl00_ctl09_SubmitButton" diff --git a/members/V000108.yaml b/members/V000108.yaml index c3d05f579..e2d0db5eb 100644 --- a/members/V000108.yaml +++ b/members/V000108.yaml @@ -69,6 +69,8 @@ contact_form: No, I wanted to voice my opinion: N - javascript: - value: document.querySelector("#required-message").value = document.querySelector("#required-message").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - value: Send Email selector: "#contactForm #submit" diff --git a/members/V000130.yaml b/members/V000130.yaml index aac8c34da..affd33f0c 100644 --- a/members/V000130.yaml +++ b/members/V000130.yaml @@ -118,6 +118,8 @@ contact_form: "No, I wanted to voice my opinion": "N" - javascript: - value: document.querySelector("#required-message").value = document.querySelector("#required-message").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - value: Send Email selector: "#contactForm input[name='submit']" diff --git a/members/V000131.yaml b/members/V000131.yaml index 3a1320bed..ce80c5c39 100644 --- a/members/V000131.yaml +++ b/members/V000131.yaml @@ -94,6 +94,8 @@ contact_form: value: Respond - javascript: - value: document.querySelector("#ctl00_ctl08_Body").value = document.querySelector("#ctl00_ctl08_Body").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - value: Submit selector: "#ctl00_ctl08_SubmitButton" diff --git a/members/W000187.yaml b/members/W000187.yaml index 2a8d4319f..832752295 100644 --- a/members/W000187.yaml +++ b/members/W000187.yaml @@ -16,8 +16,7 @@ contact_form: - javascript: - value: "Array.prototype.forEach.call(document.querySelectorAll('style,[rel=\"stylesheet\"],[type=\"text/css\"]'), function(element){ try{ element.parentNode.removeChild(element) } catch(err){} });" - click_on: - - - selector: button.btn.btn-success + - selector: button.btn.btn-success - fill_in: - name: required-first selector: "#required-first" @@ -122,8 +121,7 @@ contact_form: - javascript: - value: "Array.prototype.forEach.call(document.querySelectorAll('style,[rel=\"stylesheet\"],[type=\"text/css\"]'), function(element){ try{ element.parentNode.removeChild(element) } catch(err){} });" - click_on: - - - selector: button.btn.btn-success + - selector: button.btn.btn-success success: headers: status: 200 diff --git a/members/W000795.yaml b/members/W000795.yaml index fb661e738..ce459beb7 100644 --- a/members/W000795.yaml +++ b/members/W000795.yaml @@ -102,6 +102,8 @@ contact_form: options: "Yes, please contact me": "Y" "No, I wanted to voice my opinion": "N" + - recaptcha: + - value: true - click_on: - value: Send Email selector: "#submit" diff --git a/members/W000804.yaml b/members/W000804.yaml index cabcac269..509376298 100644 --- a/members/W000804.yaml +++ b/members/W000804.yaml @@ -78,6 +78,8 @@ contact_form: value: Respond - javascript: - value: document.querySelector("#ctl00_ctl13_Body").value = document.querySelector("#ctl00_ctl13_Body").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - value: Submit selector: "#ctl00_ctl13_SubmitButton" diff --git a/members/W000810.yaml b/members/W000810.yaml index 6f402c789..99b7a1332 100644 --- a/members/W000810.yaml +++ b/members/W000810.yaml @@ -14,8 +14,7 @@ contact_form: value: $ADDRESS_ZIP4 required: false - click_on: - - - selector: "#submit" + - selector: "#submit" - fill_in: - name: required-first selector: "#required-first" @@ -106,9 +105,10 @@ contact_form: Other Issues: OTHER - javascript: - value: document.querySelector("#required-message").value = document.querySelector("#required-message").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - - - selector: "#submit" + - selector: "#submit" success: headers: status: 200 diff --git a/members/W000819.yaml b/members/W000819.yaml index d8e1c670f..bcfb953db 100644 --- a/members/W000819.yaml +++ b/members/W000819.yaml @@ -177,6 +177,8 @@ contact_form: selector: "#ctl00_ctl09_SubscribeChoice" - javascript: - value: document.querySelector("#ctl00_ctl09_Body").value = document.querySelector("#ctl00_ctl09_Body").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - value: Submit selector: "#ctl00_ctl09_SubmitButton" diff --git a/members/W000820.yaml b/members/W000820.yaml index 01b6095f1..f05a9c72e 100644 --- a/members/W000820.yaml +++ b/members/W000820.yaml @@ -4,6 +4,8 @@ contact_form: action: /htbin/formproc_za/zip-auth.txt%26form%3D/contact/email/email-zip-authenticated%26nobase%26fpGetVer%3D2 steps: - visit: https://walters.house.gov/contact + - 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-zip5 selector: "#required-zip5" @@ -16,8 +18,6 @@ contact_form: - click_on: - value: Go To Next Step selector: "#emailForm #submit" - - javascript: - - value: 'if (document.querySelector("#emailForm #submit")) {document.querySelector("#emailForm #submit").click()}' - find: - selector: "#required-prefix" - javascript: diff --git a/members/Y000033.yaml b/members/Y000033.yaml index a11745fff..c8876db95 100644 --- a/members/Y000033.yaml +++ b/members/Y000033.yaml @@ -105,6 +105,8 @@ contact_form: value: Respond - javascript: - value: document.querySelector("#ctl00_ctl10_Body").value = document.querySelector("#ctl00_ctl10_Body").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - value: Submit selector: "#ctl00_ctl10_SubmitButton" diff --git a/members/Y000063.yaml b/members/Y000063.yaml index 54c406e67..cb127d690 100644 --- a/members/Y000063.yaml +++ b/members/Y000063.yaml @@ -116,6 +116,8 @@ contact_form: value: Email.Optin - javascript: - value: document.querySelector("#required-message").value = document.querySelector("#required-message").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - value: Send Email selector: "#contactForm input[name='submit']" diff --git a/members/Y000066.yaml b/members/Y000066.yaml index 4d1837328..6420ff00b 100644 --- a/members/Y000066.yaml +++ b/members/Y000066.yaml @@ -115,6 +115,8 @@ contact_form: Please contact me via email: Respondviaemail - javascript: - value: document.querySelector("#required-message").value = document.querySelector("#required-message").value.replace(/"/g, ''); + - recaptcha: + - value: true - click_on: - value: Send Email to Representative Young selector: "#contactForm[action='/htbin/formproc/email.txt%26display%3D/contact/email/email-sent%26nobase%26fpGetVer%3D2'] #submit"