Skip to main content

Select Combobox Item

Selects an item by visible text in a combobox or list (Windows only). Expands the combobox if collapsed and uses the UIA SelectionItemPattern to commit the selection.

Category: Desktop Application Automation · Group: Desktop · Activity name: SelectComboboxItem

The SelectComboboxItem activity in the designer

Example

SelectComboboxItem("<xPath>", "<comboboxItemText>", checkOrphanedElements=False)

Inputs

NameTypeRequiredDefaultDescription
XPathstringYesXPath expression that identifies the combobox / list element.
Item textstringYesVisible text of the item to select.
Check orphaned elementsbooleanFalseWhen the element is not found by its XPath, scan the parent window's area for elements detached from the UI Automation tree. Slower; enable only for windows known to orphan their elements.