Clicks an element (with a query selector)
Options:
Option | Required | Description | Example |
---|---|---|---|
querySelector | true | (string) Query selector of the element to click. | # printMe |
offsetX | false | (number) Offset X of the element to click on | |
offsetY | false | (number) Offset Y of the element to click on | |
rightClick | false | (bool) Whether or not to perform right click | |
doubleClick | false | (bool) Whether or not to perform double click | |
ariaSelector | false | (string) Aria Selector of the element to click on | |
textSelector | false | (string) Text Selector of the element to click on | |
xpathSelector | false | (string) Xpath Selector of the element to click on | |
pierceSelector | false | (string) Pierce Selector of the element to click on |
Example 1: Clicks the given element (querySelector)
{
"action": "click",
"options": {
"querySelector": "#printMe"
}
}