Skip to main content

[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.

ParameterParameter TypeRequiredDescription
toTestObjectYesRepresents a web element.
rangeObjectYesThe indexes of the options to be verified if not being selected.
isRegexBooleanYestrue if the label is a regular expression, false by default.
timeOutintYesSystem will wait at most timeout (seconds) to return result.
flowControlFailureHandlingOptionalSpecify failure handling schema to determine whether the execution should be allowed to continue or stop.

Returns

Parameter TypeDescription
Boolean
  • true if all options at given indices are not selected.
  • false if options at given indices are selected.

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)
Was this page helpful?