Set Value (by Index)

Last modified: June 18, 2025

Description

Sets the value of a drop-down by index, for example, EnumSelect or ReferenceSelector

Supported widgets

  • Dropdown
  • ReferenceSelector
  • SearchInput Dropdown

Usage

Pass the name of the widget and the index of the value you want to set. Optionally you can provide a WebElement as search context, to narrow down the search for the widget, if there are two or more widgets with the same name.

Input Parameters

NameDatatypeRequiredDescription
Widget NameStringyesThe name of the widget
IndexIntegeryesThe index of the desired value
Search ContextWebElementnoLimit the search to the given WebElement