assertSelectedIndex (UI Automation - Interrogation)
Compatible with:
- Purpose
- Generated from getSelectedIndex(selectLocator).
- This command gets option index (option number, starting at 0) for selected option in the specified select element.
- Syntax
- assertSelectedIndex(selectLocator, pattern)
- Target
- selectLocator- an element locator identifying a drop-down menu
- Value
- pattern - The value to be verified.
- Return Value
- The selected option index in the specified select drop-down.