Close Method (JavaSwtRichPageList)

Class

JavaSwtRichPageList.

Action

Closes the visible page.

Syntax

pageList.Close(Pageli)
Variable Description
Pageli The page to close. LISTITEM.

Notes

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

If the page is not visible, precede the Close method with a Select method (PageList).

Silk Test Classic does not record Close() against the JavaSwtRichPageList class; you must add it by hand to your test script. Silk Test Classic only records Select statements against the JavaSwtRichPageList class.

If the page does not have a Close button, Close returns an exception, E_WINDOW_TYPE_MISMATCH.

Examples

For an item, type:

PageList.Close("Oak")

For an index, type:

PageList.Close("#4")