VerifyValue Method (CheckBox Class)

Class

CheckBox class.

Action

Verifies the state of the check box.

Syntax

checkbox.VerifyValue(bExpected[, nTimeout])
Variable Description
bExpected TRUE to specify that the check box should be checked, or FALSE to specify that the check box should be unchecked. BOOLEAN.
nTimeout Optional: The number of seconds to wait for the expected value to be achieved. NUMBER.

Notes

You use the VerifyValue method to check whether a check box has the expected selection state. If the check box does not have the expected selection state, Silk Test Classic raises the exception E_VERIFY.

Calling this method is the same as calling the Verify function in the following manner:
Verify (window.IsChecked (), expected_value)

If a timeout is specified with the nTimeout parameter, Silk Test Classic calls VerifyValue() until the condition is verified or the timeout is reached. The time between checks is the value of the window retry interval Agent option, OPT_WINDOW_RETRY. If the verification fails, an exception is thrown.

Example

Find.CaseSensitive.VerifyValue(TRUE)