-
Notifications
You must be signed in to change notification settings - Fork 212
/
W000813.yaml
47 lines (47 loc) · 1.58 KB
/
W000813.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
bioguide: W000813
contact_form:
method: post
action: "/contact/email/#wpcf7-f93-p1445-o1"
steps:
- visit: "http://walorski.house.gov/contact/email/"
- fill_in:
- name: formField_First_Name
selector: "#formField_First_Name"
value: $NAME_FIRST
required: true
- name: formField_Last_Name
selector: "#formField_Last_Name"
value: $NAME_LAST
required: true
- name: formField_Email
selector: "#formField_Email"
value: $EMAIL
required: true
- name: formField_Zip
selector: "#formField_Zip"
value: $ADDRESS_ZIP5
required: true
- name: formField_Message_Subject
selector: "#formField_Message_Subject"
value: $SUBJECT
required: true
- name: formField_text_message
selector: "#formField_text_message"
value: $MESSAGE
required: true
- uncheck:
- name: "formField_NewsletterSub[]"
selector: "form.wpcf7-form input[name='formField_NewsletterSub[]']"
value: I would like to receive updates via email
- javascript:
- value: document.querySelector("#formField_text_message").value = document.querySelector("#formField_text_message").value.replace(/"/g, '');
- click_on:
- value: Submit
selector: input.wpcf7-form-control.wpcf7-submit.btn.btn-primary.pull-right
- find:
- selector: ".wpcf7-mail-sent-ok"
success:
headers:
status: 200
body:
contains: Thank you for your message. It has been sent.