Select Method (DomainUpDown DomListBox ListViewEx RadioListToolItem)

Class

  • DomainUpDown
  • DomListBox
  • ListViewEx
  • RadioListToolItem

Action

Selects an item.

Availability

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

Syntax

Select(Item)
Variable Description
Item The item to select. LISTITEM.

Notes

Select selects an item by scrolling the item into view, and where applicable, clicking it with the mouse if it is not already selected.

Example: Selecting an item in a DomListBox by using wildcards

Use the following code to select the first item whose name includes "Lookup" from a DomListBox:
testcase example() appstate none
  // Find the DomListBox in question
  window w = Desktop.Find("/BrowserApplication//BrowserWindow//SELECT[@id='MyDomListBox']")	
  // Select the DomListBox
  w.Select("*Lookup*")