assertSelectedLabels (UI Automation - Interrogation)
Compatible with:
- Purpose
- Generated from getSelectedLabels(selectLocator)
- This command is used to verify if all the labels (visible text) for selected options in the specified select or multi-select element matches the pattern given in Value.
- Syntax
- assertSelectedLabels(selectLocator, pattern)
- Target
- selectLocator - an element locator identifying a drop-down menu
- Value
- pattern
- Return Value
- An array of all selected option labels in the specified select drop-down