VerifyValue Method (Table)

Class

Table.

Action

Verifies the selected cells in a table.

Availability

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

Syntax

table.VerifyValue(aExpected [, nTimeout])
Variable Description
aExpected The text or cell of the expected selection. ANYTYPE.
nTimeout Optional: The number of seconds to wait for the expected value to be achieved. NUMBER.

Notes

You can specify any of the following for aExpected:
  • A TABLECELL, if you want to verify that one particular cell is selected
  • A STRING, if you want to verify that one particular value is selected
  • A LIST OF TABLECELL, if you want to verify that multiple particular cells are selected
  • A LIST OF STRING, if you want to verify that multiple particular values are selected

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

The following example verifies that the second cell in the first row is selected.

Emp.EmpTable.VerifyValue({1,2})

The following example verifies that the value "Carullo" is selected.

Emp.EmpTable.VerifyValue("Carullo")