VerifyEverything Method

Class

AnyWin class.

Action

Verifies the contents and attributes of a window.

Availability

This method is supported only in scripts that use the Classic Agent.

Syntax

window.VerifyEverything(lsEverything[, nTimeout])
Variable Description
lsEverything The contents and attributes of the window. LIST OF STRING.
nTimeout Optional: The number of seconds to wait for the expected value to be achieved. NUMBER.

Notes

VerifyEverything verifies that a particular window has the expected contents and settings. You can create the lsValues list, which describes the attributes of a particular window, using the GetEverything method. The attributes of window classes are defined within the window class declaration using the attribute keyword. For a list of the attributes defined for the built-in classes, see the file winclass.inc.

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 VerifyEverything() 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

TextEditor.Document.VerifyEverything(<text>)
Caret position: {1, 1} 
Enabled: TRUE
Selected range: {1, 1, 1, 1}
Selected text:
Text: