[WebUI] Verify Option Not Selected By Index
Description
Verify if the options at the given indices are not selected.
Keyword name: verifyOptionNotSelectedByIndex
Parameters
- to - TestObject (required): represent a web element
- range - Object (required): the indexes of the options to be verified if not being selected
- isRegex - boolean (required): true if the label is a regular expression, false by default
timeOut - int (required): 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 here.
Parameter | Parameter Type | Required | Description |
---|---|---|---|
to | TestObject | Yes | Represents a web element. |
range | Object | Yes | The indexes of the options to be verified if not being selected. |
isRegex | Boolean | Yes | true if the label is a regular expression, false by default. |
timeOut | int | Yes | 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. |
Returns
Parameter Type | Description |
---|---|
Boolean |
|
Example
You want to verify if Option 1 in the list is not selected in the 5-second timeout.
In Manual view:
WebUI.verifyOptionNotSelectedByIndex(findTestObject('The Second Landing Page/select_js-intent'), 1, 5)