Get UI Selection | Leapwork Docs

The Get UI Selection building block retrieves the current selection from combobox and multi-select controls in an already open desktop application window. It is similar to Get Web Dropdown, but for Desktop UI automation, and it can return either the selected UI element(s) or the selected text value(s), depending on the chosen mode.

Fully expanded, the Get UI Selection block shows the following properties:

Note: The screenshot on this page uses the Elegance Design, introduced in 2025.3. If you are using an earlier version, your layout may look different.

Quick-start

  1. Drag Get UI Selection onto the canvas.
  2. Connect the block in the flow and specify Select UI Element, Get selection as, and (if needed) Source element, Use occurred, and timeout-related settings.
  3. Run the flow when it’s ready.

Building block parameters

Parameters

Resources

Topic Description
Flows FAQ Common questions about creating, running, and managing flows in Leapwork.
Flows Troubleshooting Guidelines and solutions for identifying and fixing issues that occur when building or running flows in Leapwork.
Strategy Editor Guidelines for understanding and using the Strategy Editor in Leapwork to define, refine, and validate robust locator strategies for UI elements using DOM structure, tokens, and wildcards.