Skip to content

assertNotSelectedLabels (UI Automation - Interrogation)

Compatible with:
  • Purpose
  • Generated from getSelectedLabel(selectLocator) 
  • Gets option label (visible text) for selected option in the specified select element. 
  • This command is used to verify if the labels (visible text) for selected option in the specified select element doesn't match with the pattern given in the value.
  • Syntax
  • assertNotSelectedLabels(selectLocator, pattern)
  • Target
  • selectLocator - an element locator identifying a drop-down menu
  • Value
  • pattern
  • Return Value
  • Returns true if the pattern doesn't match the option labels for selected options in the specified select element.
 

Feedback and Knowledge Base