Skip to content

verifyNotSelectedValue (UI Automation - Interrogation)

Compatible with:
  • Purpose
  • Generated from getSelectedValue(selectLocator) 
  • Gets option value (value attribute) for selected option in the specified select element. 
  • This command is used to verify if the pattern in Value attribute for selected option in the specified select element doesn't match with the specified pattern given in Value.
  • Syntax
  • verifyNotSelectedValue(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 value (value attribute) for selected option in the specified select element.
 

Feedback and Knowledge Base