Skip to main content

[WebUI] Verify Option Selected By Index


Verify if the options at the given indices are selected.


  • 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


  • 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



WebUI.verifyOptionSelectedByIndex(findTestObject('The Second Landing Page/select_js-intent'), 1, 2)