forked from k1LoW/runn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cdp.yml
49 lines (49 loc) · 982 Bytes
/
cdp.yml
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
48
49
desc: Test using CDP
runners:
cc: chrome://new
steps:
-
cc:
actions:
- navigate: '{{ vars.url }}/form'
- click: 'body > header > a'
- text: 'h1'
test: |
current.text == 'Hello'
-
cc:
actions:
- evaluate: |
document.querySelector('h1').textContent = 'modified'
- text: 'h1'
test: |
current.text == 'modified'
-
cc:
actions:
- navigate: '{{ vars.url }}/form'
- click: '//*[@id="newtab"]'
- location
test: |
current.url == vars.url + '/form'
-
cc:
actions:
- latestTab
- location
test: |
current.url contains 'hello'
-
cc:
actions:
- navigate: '{{ vars.url }}/sleep/1'
- text: 'pre'
test: |
current.text == '{"sleep": 1}'
-
cc:
actions:
- navigate: '{{ vars.url }}/sleep/1'
- text: 'pre'
test: |
current.text == '{"sleep": 1}'