get_selected_item
Retrieve the first selected item from a UI container like ListBox or TreeView. Returns an element ID for further automation.
Instructions
Get the first selected item in a container (e.g. ListBox, TreeView) via the UIA Selection pattern. Returns an element ID.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| elementId | Yes | Element ID returned by find_element |