Skip to main content

[Mobile] Verify Element Not Checked

Description

Verify if a mobile element is not checked.

Parameters:

ParameterParameter TypeMandatoryDescription
toTestObjectrequiredrepresent a mobile element
timeoutintrequiredsystem will wait at most timeout (seconds) to return a result
flowControlFailureHandlingoptionalSpecify failure handling schema to determine whether the execution should be allowed to continue or stop.

Returns

true if the element is NOT checked; otherwise, false

Example

You want to verify if a checkbox is NOT checked

Manual:

Verify element not checked example

Script:

Mobile.verifyElementNotChecked(findTestObject('SampleApp.apk/android.widget.CheckBox - Checkbox0'), 10)