Skip to main content
Roberty Studio
RPABrowser

Set select options

Set select options

Selects an option in a dropdown on a web page, choosing it either by its position or by its visible text.


Options​

Browser or page ID​

The browser, tab or iframe opening action the dropdown is in.

Element selector​

The CSS selector identifying the dropdown on the page, select#state for example.

Value type​

How the option is chosen:

  • Position — by numeric index, starting at 0
  • Text — by the option's exact visible text

Element position​

The numeric index of the option to select. The index starts at 0. It appears when Value type is Position.

Element value​

The exact text of the option to select. It appears when Value type is Text — São Paulo, for example.

Returns​

This action has no returns.

Rules and conditions​

  • Browser or page ID and Element selector are both required.
  • Element selector has to point at a dropdown element on the page.
  • With Value type set to Text, the value has to match the option's visible text exactly.
  • If the selector is not found, or the position/text matches no available option, the action ends in an error.