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