Skip to main content
Browser

Get/click an item from a list

Get/click 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

The item's position

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

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 The item's position are both required.
  • The position starts at 1 (the list's first item).
  • If no item matches the position given, the action ends in an error.