Skip to content

Get Selected Dropdown Option: GETSELECTED

The Get Selected Dropdown Option action retrieves the selected option from a dropdown list and stores its text value in a specified variable. This action is useful for capturing the current selection in a dropdown and using that value in other parts of the automation.

Example: Let’s get the selected option from a Country dropdown menu on a registration form and save it to a variable, SelectedCountry.

Steps to configure:

  1. Select Get elected Dropdown Option from the Action drop-down.
  2. In the Screen Name field, select the screen where the dropdown is located (e.g., Registration Form).
  3. In the Element Key field, select the dropdown element (e.g., Country).
  4. In the Parameters section, enter the variable name where you want to save the selected option’s text (e.g., SelectedCountry).
  5. Click Save.

Note: The steps to add this action are the same in both views, but the layout changes slightly:

scrn-get-selected-dropdown-option-tabular-view
Tabular View
scrn-get-selected-dropdown-option-card-view
Card View

Note: Ensure that the Screen Name and Element Key are set up before using this action.

Expected Outcome on Execution:

  • The Get Selected Drowndown Option action will capture the text of the selected option in the dropdown (e.g., United States) and assign it to the variable SelectedCountry.
  • This stored text can be used in subsequent steps by referencing the variable using the syntax: ${variableName}.

Back To Top