VerifyEnabled Method

Class

AnyWin class.

Action

Verifies that a window is enabled or disabled.

Syntax

window.VerifyEnabled([bEnabled][, nTimeout])
Variable Description
bEnabled Optional: TRUE (the default) verifies that the window is enabled. FALSE verifies that the window is disabled. BOOLEAN.
nTimeout Optional: The number of seconds to wait for the window to become enabled or disabled, depending on the value of bEnabled. NUMBER.

Notes

VerifyEnabled verifies that the specified window is enabled, or verifies that it is disabled, and raises the exception E_VERIFY if it is not.

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