Skip to main content
Roberty Studio
RPABrowser

Get/Click on an item from a list

Get/Click on an item from a list

Reads the text of, or clicks, a list item or button on the browser's page, by its position. Useful for menus, option lists and buttons identified by the order they appear in.


Options​

Browser or page ID​

The browser, tab or iframe opening action the list or buttons are in.

Select the action​

The kind of interaction:

  • Get an item from a list — reads the item's text without clicking
  • Click an item in a list — clicks the button and returns its text

Item position​

The item's numeric position on the page, counting from 0.

Returns​

Javascript code​

js
actions["action-id"].value // the text of the item or button (Text)

Field selection​

  • value — the text of the item or button (Text)

Rules and conditions​

  • Browser or page ID and Item position are both required.
  • The position starts at 0 (the list's first item).
  • If no item matches the position given, the action ends in an error.