[WebUI] Verify Option Selected By Index
Description
Verify if the options at the given indices are selected.
Parameters
- to - TestObject (required): represent a web element
- range - Object (required): list of indexes of the options to be verified if being
- timeout - int (requiredl): system will wait at most timeout (seconds) to return result
- flowControl - FailureHandling (optional): specify failure handling schema to determine whether the execution should be allowed to continue or stop. More details are in this page: Failure handling
Returns
- true: if options with given indices are selected
- false: if options with given indices are not selected
Example: You want to verify if the option 1 is selected in the list
Manual:
Script:
WebUI.verifyOptionSelectedByIndex(findTestObject('The Second Landing Page/select_js-intent'), 1, 2)