API Reference

Waits

Options:

OptionRequiredDescriptionExample
fortrue(string) Wait for time or querySelector. Possible Values - "time" | "querySelector"time
timefalse(number) Number of milliseconds to wait for. Either time or querySelector is required2000
querySelectorfalse(string) Query selector of the element to wait till it appears. Either time or querySelector is requireddiv.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"
  }
}