Waits
Options:
Option | Required | Description | Example |
---|---|---|---|
for | true | (string) Wait for time or querySelector. Possible Values - "time" | "querySelector" | time |
time | false | (number) Number of milliseconds to wait for. Either time or querySelector is required | 2000 |
querySelector | false | (string) Query selector of the element to wait till it appears. Either time or querySelector is required | div.main-container |
Example 1: Wait for 3 seconds
{
"action": "wait",
"options": {
"for": "time",
"time": 3000
}
}
Example 2: Wait for an element
{
"action": "wait",
"options": {
"for": "querySelector",
"querySelector": "div.main-container"
}
}