VerifyChecked Method

Class

MenuItem.

Action

Verifies that a menu item is checked or unchecked.

Syntax

menuitem.VerifyChecked([bChecked]
[, nTimeout])
Variable Description
bChecked Optional: Verifies if the menu item is checked (TRUE) or unchecked (FALSE). The default value is TRUE. BOOLEAN.
nTimeout Optional: The number of seconds to wait for the expected value to be achieved. NUMBER.

Notes

VerifyChecked verifies whether the menu item’s checked state matches the desired state. The desired state is checked unless bChecked is FALSE.

If a timeout is specified with the nTimeout parameter, Silk Test Classic calls VerifyChecked() 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

MyApp.Menu("Edit").MenuItem("WordWrap").VerifyChecked()