-
Notifications
You must be signed in to change notification settings - Fork 0
/
teemo.yaml
30 lines (29 loc) · 845 Bytes
/
teemo.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
webDriver:
url: 'http://localhost:9515'
capabilities: |
{
"browserName": "chrome",
"goog:chromeOptions": {
"args": ["--load-extension=/Users/ultraji/workspace/rust/teemo/extension"]
}
}
steps:
- action: Goto
url: https://google.com
- action: Click
locator: {strategy: XPath, expr: '//*[@id="L2AGLb"]'}
allowSkip: true
- action: Wait
timeout: 3
- action: SendKeys
value: [ 'ultraji', 'Key::Enter']
locator: { strategy: XPath, expr: '//*[@id="APjFqb"]' }
- action: ExecScript
script: 'console.log("hello world")'
params: [""]
- action: Wait
timeout: 3000
- action: GetElemText
locator: { strategy: XPath, expr: '//*[@id="rso"]/div[1]/div/div/div[1]/div/div/span/a/div/div/div/cite' }
resourceName: first_item
content: "This is first search result item of ultraji. It's ${first_item}. "