Skip to content

storeSelectedLabels (UI Automation - Manipulation)

Compatible with:
  • Purpose
  • This command gets all option labels (visible text) for selected options in the specified select or multi-select element. It returns an array of all selected option labels in the specified select drop-down
  • Syntax
  • storeSelectedLabels(selectLocator, variableName)
  • Target
  • selectLocator - an element locator identifying a drop-down menu
  • Value
  • variableName
  • Return Value
  • An array of all selected option labels in the specified select drop-down
 

Feedback and Knowledge Base