Skip to content

assertSelectedLabel (UI Automation - Interrogation)

Compatible with:
  • Purpose
  • Generated from getSelectedLabel(selectLocator) 
  • This command is used to verify if the label (visible text) for selected option in the specified select element matches the label pattern given in the Value.
  • If the label of option does not match with given value, the execution gets aborted.
  • SPromptyntax
  • assertSelectedLabel(selectLocator, pattern)
  • Target
  • selectLocator - an element locator identifying a drop-down menu
  • Value
  • pattern
  • Return Value
  • The selected option label in the specified select drop-down
 

Feedback and Knowledge Base