VerifyContents checks that the contents of the menu or window match the list of string passed in. If the contents do not match, Silk Test Classic raises the exception E_VERIFY.
Verify(object.QueryContents(), lsExpected, "contents")
(QueryContents is an internal method for Menu and MoveableWin, defined in winclass.inc.)
If a timeout is specified with the nTimeout parameter, Silk Test Classic calls VerifyContents() 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.