Skip to main content
Roberty Studio
RPABrowser

Focus Element

Focus Element

Moves the browser's focus to a particular element on the page — the same as clicking into a field without triggering what a click would do. Useful for activating a field before typing or pressing a key.


Options​

Select the action​

The action's mode.

An element in the browser​

Focuses the element 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 focus, input#name for example.

An element already selected​

Focuses an element captured earlier by a Get element action.

Element ID​

The action that captured the element to focus.

One item from a selection of multiple elements​

Focuses 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​

The element's position in the list. The index starts at 0.

Returns​

This action has no returns.

Rules and conditions​

  • Select the action has to be set before the other fields.
  • In An element in the browser mode, Browser or page ID and Element selector are both required.
  • If the element is not found on the page, the action ends in an error.