mirror of
https://github.com/unitedstates/contact-congress.git
synced 2025-12-19 09:27:29 -05:00
Update L000570.yaml (success text), M001198 (removed stylesheets), W000790 (stylesheets and click on)
This commit is contained in:
@@ -110,4 +110,4 @@ contact_form:
|
||||
headers:
|
||||
status: 200
|
||||
body:
|
||||
contains: Thank you for writing in
|
||||
contains: Services
|
||||
|
||||
@@ -1,9 +1,11 @@
|
||||
bioguide: M001198
|
||||
contact_form:
|
||||
method: post
|
||||
action: /#wpcf7-f8521-p45-o1
|
||||
action: "https://www.marshall.senate.gov/contact/contact-form/"
|
||||
steps:
|
||||
- visit: "https://www.marshall.senate.gov/contact/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){} });"
|
||||
- fill_in:
|
||||
- name: "input_2"
|
||||
selector: "#input_11_2"
|
||||
@@ -102,15 +104,13 @@ contact_form:
|
||||
- Veterans
|
||||
- Welfare
|
||||
- Women's Issues
|
||||
- click_on:
|
||||
- name: "input_18"
|
||||
selector: "#choice_11_18_1"
|
||||
- find:
|
||||
- selector: "#gform_submit_button_11"
|
||||
- click_on:
|
||||
- selector: "#gform_submit_button_11"
|
||||
- fill_in:
|
||||
- name: "break"
|
||||
selector: "#break-this-form"
|
||||
value: $NAME_FIRST
|
||||
required: true
|
||||
- selector: "#gform_submit_button_11"
|
||||
success:
|
||||
headers:
|
||||
status: 200
|
||||
|
||||
@@ -7,7 +7,7 @@ contact_form:
|
||||
- wait:
|
||||
- value: 3
|
||||
- javascript:
|
||||
- value: "document.querySelector('#gform_wrapper_1').style.display = 'block'"
|
||||
- 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: "input_2"
|
||||
selector: "#input_1_2"
|
||||
@@ -97,8 +97,8 @@ contact_form:
|
||||
- Transportation
|
||||
- Veterans
|
||||
- Women and Children
|
||||
- javascript:
|
||||
- value: '("#gform_17").trigger("submit",[true]);'
|
||||
- click_on:
|
||||
- selector: "#gform_submit_button_1"
|
||||
- wait:
|
||||
- value: 10
|
||||
success:
|
||||
|
||||
Reference in New Issue
Block a user