Class
ListBox and
TreeView.
Action
Returns all selected items in the list box or tree.
Availability
This functionality is supported only if you are using the Open Agent.
Syntax
list = listbox.GetSelItems()
Variable
|
Description
|
list
|
The list of the selected contents of the current listbox or treeview.
LIST OF LISTITEM.
|
Notes
If no item is selected,
GetSelItems returns an empty list.
Example 1
This example verifies a listbox element.
Verify(DialogBox1.Elements.GetSelItems(), {“item1”, “item3”})
Example 2
This example shows a sample return value for the tree view.
[-] MyDialog.MyTreeView.GetSelItems()
[ ] {"/root/child1/grandchild", "/root/child2”}