Expand UI Element | Leapwork Docs

The Expand UI Element building block expands a UI element (for example an expand button) in an already open application window when working with Desktop UI automation.

Fully expanded, the Expand UI Element 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 Expand UI Element onto the canvas.
  2. Connect the block in the flow and specify Select UI Element (required). Optionally set Source element and Use occurred if you need to narrow the search or handle multiple matches, and adjust timeout-related settings (including Scroll to find and Await no changes) if needed.
  3. Run the flow when it’s ready.

Building block parameters

Parameters

UI elements that are not visible return position 0, 0.

Note: All cases have a global timeout configured in the Settings panel. This is unrelated to the timeout of a single building block. However, a running case will automatically be cancelled if it runs for longer than the global timeout.

Resources

Enlarges the table by opening it in a full screen dialogOpen

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.