Class
Scale,
ScrollBar, and
UpDown.
Action
Verifies the position of the scroll bar, scale, or
UpDown control.
Availability
This functionality is supported only if you are using the Classic Agent.
Syntax
object.VerifyValue(nExpected[, nTimeout])
Variable
|
Description
|
nExpected
|
The number position (INTEGER or REAL) you expect the scale to have, or the INTEGER position you expect the scroll bar or
UpDown to have.
|
nTimeout
|
Optional: The number of seconds to wait for the expected value to be achieved.
NUMBER.
|
Notes
You use the
VerifyValue method to check whether a scroll bar, scale, or
UpDown has the expected position. If the actual position does not match the expected value,
Silk Test Classic raises the exception
E_VERIFY.
Calling this method is the same as calling the
Verify function in the following manner:
Verify(window.GetPosition(), expected_position)
If a timeout is specified with the
nTimeout parameter,
Silk Test Classic calls
VerifyValue() 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
Open.Files.VScrollBar.VerifyValue(1)