assertNotSelectedLabel (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 label (visible text) for selected option in the specified select element doesn't match with the pattern given in the value.
- Syntax
- assertNotSelectedLabel(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 label for selected option in the specified select element.