VerifyPageSize Method

Class

ScrollBar.

Action

Determines whether the page size is as expected.

Syntax

scrollbar.VerifyPageSize(iExpPageSz[, nTimeout])
Variable Description
iExpPageSz The expected page size. INTEGER.
nTimeout Optional: The number of seconds to wait for the expected value to be achieved. NUMBER.

Notes

If the verify fails, this function logs the following message to the results file: VerifyPageSize failed — expected iExpPageSz, got sActual. This method is not useful for Windows GUIs.

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

scrollbar.VerifyPageSize(12)