ui_get_selected_item
Retrieve the selected item's name, index, and properties from a list or grid control to verify selection state after user actions.
Instructions
Get the currently selected item in a list/grid control.
Returns the selected item's name, index, and properties. Useful for verifying selection state after clicks or keyboard navigation.
Note: FlaUI backend returns selection for the first item only. Use ui_find_element to inspect individual items for full multi-selection state.
Args: automation_id: AutomationId of the list/grid/combobox control root_id: Optional AutomationId to scope search to a subtree xpath: Optional XPath expression (FlaUI backend only)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| automation_id | Yes | ||
| root_id | No | ||
| xpath | No |