Check Method (JavaSwtListView)

Class

JavaSwtListView.

Action

Checks the item in the listview.

Syntax

bCheckState = listview.Check(Itemli)
Variable Description
bCheckState Returns TRUE if the object is successfully checked. BOOLEAN.
Itemli The item in the listview to check. LISTITEM.

Notes

Returns TRUE if the object is checked. FALSE if it is unchecked.

If the JavaSwtListView has no check boxes, Silk Test Classic raises the exception E_WINDOW_TYPE_MISMATCH.

If you do not find an item in the JavaSwtListView widget, due to an incorrect index or item text, Silk Test Classic raises the exception E_ITEM_NOT_FOUND.

This method is supported only in scripts that use the Classic Agent.