Skip to main content
Roberty Studio
RPABrowser

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.

An element in the 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.

An element already selected​

Clicks an element captured earlier by a Get element action.

Element ID​

The action that captured the element.

One item from a selection of multiple elements​

Clicks an element from a list captured by a Get elements action.

Elements list id​

The action that captured the list.

Enter the index of the list​

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.

Click count​

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​

This action has no returns.

Rules and conditions​

  • Select the action has to be set before the other fields, since it decides which of them appear.
  • In An element in the browser mode, the page ID and the CSS selector are both required.
  • In One item from a selection of multiple elements 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.