Type: click
Request that the browser clicks a particular element on the page.
selector
string
The that defines the page element that the browser should click on.
timeout
integer
The maximum amount of time the browser should wait for the element defined by the selector to appear. Default: 5000 (5s)
See universal parameters.
The following code will wait 1 second and then continue with the next action, if provided.
"actions": [
{
"type": "click",
"selector": "a.header__logo"
}
]
The following code will wait for the logo to appear for a maximum of 5 seconds and it will continue with the list of actions
"actions": [
{
"type": "wait",
"selector": "a.header__logo",
"timeout": 5000,
"continueOnFail": true
}
]