Verifies the selected range of the text box.
textfield.VerifySelRange(trExpected [, nTimeout])
|trExpected||The range you expect to be selected. TEXTRANGE.|
|nTimeout||Optional: The number of seconds to wait for the expected value to be achieved. NUMBER.|
VerifySelRange verifies that the selected range in the text box matches the range you expected to be selected. You specify the expected selection with a TEXTRANGE record.
The values of the column fields point to just before the columns themselves. Therefore, position 1 is the position just before the first character. The position at the end of the line is the one more than the last character.
For a single-line text box, iStartLine and iEndLine are ignored.
If the ranges do not match, Silk Test Classic raises the exception E_VERIFY.
If a timeout is specified with the nTimeout parameter, Silk Test Classic calls VerifySelRange() 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.
TEXTRANGE trRange trRange.iStartLine = 1 trRange.iStartCol = 1 trRange.iEndLine = 1 trRange.iEndCol = 6 TextEditor.Document.VerifySelRange(trRange)