find ui element.md

Find UI Element

The Find UI Element block searches for a UI element (for example, a button or text box) in an already open application window when working with Desktop UI automation. If the element is found, the block returns details such as the found element itself and its position and area on screen, which can be reused in later blocks.

When fully expanded, the Find UI Element block displays 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 Find UI Element onto the canvas.
  2. Connect the block in the flow and set the required parameter Select UI Element. You can optionally adjust other parameters such as Source element, Use occurred, and Default timeout if needed.
  3. Run the flow when it's ready.

Building block parameters

Parameters

The green input connector triggers the block when the flow reaches it, and the green output connector triggers when the UI element has been successfully found.

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.