Click
Click
Clicks an element on a web page. It works three ways: by CSS selector straight in the browser, on an element already captured, or on an element from a list.
Options
Select the action
The action's mode. What you pick here decides which of the other fields appear.
By browser
Clicks using a CSS selector on the page.
Browser or page ID
The browser, tab or iframe opening action used as the context.
Element selector
The CSS selector identifying the element to click, button#btnSubmit for example.
By element
Clicks an element captured earlier by a Get element action.
Element ID
The action that captured the element.
By element list
Clicks an element from a list captured by a Get elements action.
Element list ID
The action that captured the list.
The list index
Which position in the list to click. The index starts at 0.
Button
The mouse button used: Left, Middle or Right. Default: Left.
Element state
The condition the element has to be in for the click to happen: Visible, Invisible/hidden, Present in the DOM or Not present in the DOM. Default: Visible.
Number of clicks
How many times the robot clicks the element. Use 2 for a double click. Default: 1.
Click time
How long, in milliseconds, between pressing and releasing the mouse button. Default: 0.
Timeout
How long, in seconds, the robot waits for the element to be available before failing. Default: 120.
Returns
Javascript code
actions["action-id"] // the clicked element (Element)
Field selection
The clicked element comes back and can be referenced by other actions working in By element mode.
Rules and conditions
- Select the action has to be set before the other fields, since it decides which of them appear.
- In By browser mode, the page ID and the CSS selector are both required.
- In By element list mode, the index has to match a position that exists in the list.
- If the element is not found within the timeout, the robot stops with an error.