invoke ui element.md

Invoke UI Element

The Invoke UI Element block is used in Desktop UI automation to trigger a UI element using the Windows Invoke automation pattern. Instead of moving the mouse pointer, it sends an internal message to the control, which is often faster and more reliable. It can be used for actions such as toggling, selecting, expanding, or clicking elements in an already open application window.

Fully expanded, the Invoke 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 Invoke UI Element onto the canvas.
  2. Connect the block in the flow, capture the target in Select UI Element (required), and optionally adjust parameters such as Method, Source element, Use occurrence, Default timeout, Scroll to find, Await no changes.
  3. Run the flow when it's ready.

For a minimal setup, set Select UI Element to the control you want to invoke and keep the default settings.

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.