Update L000570.yaml (success text), M001198 (removed stylesheets), W000790 (stylesheets and click on)

This commit is contained in:
amy-chinlai
2023-06-21 15:30:18 -04:00
parent 0caf73640d
commit d2f764c6bd
3 changed files with 11 additions and 11 deletions

View File

@@ -110,4 +110,4 @@ contact_form:
headers: headers:
status: 200 status: 200
body: body:
contains: Thank you for writing in contains: Services

View File

@@ -1,9 +1,11 @@
bioguide: M001198 bioguide: M001198
contact_form: contact_form:
method: post method: post
action: /#wpcf7-f8521-p45-o1 action: "https://www.marshall.senate.gov/contact/contact-form/"
steps: steps:
- visit: "https://www.marshall.senate.gov/contact/contact-form/" - 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: - fill_in:
- name: "input_2" - name: "input_2"
selector: "#input_11_2" selector: "#input_11_2"
@@ -102,15 +104,13 @@ contact_form:
- Veterans - Veterans
- Welfare - Welfare
- Women's Issues - Women's Issues
- click_on:
- name: "input_18"
selector: "#choice_11_18_1"
- find: - find:
- selector: "#gform_submit_button_11" - selector: "#gform_submit_button_11"
- click_on: - click_on:
- selector: "#gform_submit_button_11" - selector: "#gform_submit_button_11"
- fill_in:
- name: "break"
selector: "#break-this-form"
value: $NAME_FIRST
required: true
success: success:
headers: headers:
status: 200 status: 200

View File

@@ -7,7 +7,7 @@ contact_form:
- wait: - wait:
- value: 3 - value: 3
- javascript: - 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: - fill_in:
- name: "input_2" - name: "input_2"
selector: "#input_1_2" selector: "#input_1_2"
@@ -97,8 +97,8 @@ contact_form:
- Transportation - Transportation
- Veterans - Veterans
- Women and Children - Women and Children
- javascript: - click_on:
- value: '("#gform_17").trigger("submit",[true]);' - selector: "#gform_submit_button_1"
- wait: - wait:
- value: 10 - value: 10
success: success: