VerifyRange Method

Class

ScrollBar and UpDown.

Action

Verifies the minimum and maximum positions to which the scroll bar or updown can be set.

Availability

This functionality is supported only if you are using the Classic Agent.

Syntax

scrollbar.VerifyRange(Range[, nTimeout])
Variable Description
Range The range you expect the scroll bar or updown to have. SBRANGE.
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 VerifyRange() 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

MyDialog.TextField1.VScrollBar.VerifyRange({0, 100})