set ui element value.md

Set UI Element Value

The Set UI Element Value block is used to set a value in a UI element, such as a textbox, in an already open application window. It's typically used when automating interactions with desktop UI controls in Leapwork.

Fully expanded, the Set UI Element Value 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 Set UI Element Value onto the canvas.
  2. Specify the basic parameters required for this block to operate: Select UI Element, Method.
  3. Run the flow when it's ready.

Building block parameters

Parameters

The green output connector in the header triggers when the UI element has been successfully found.

The title of the block ("Set UI Element Value") can be changed by double-clicking on it and typing in a new title.

Values:

Fields can be inserted into Text value, or used as input in other blocks that support tokens (e.g., search fields, logs, selectors).

Right-click in any compatible input field and choose Insert token to reference a field.

Values:

Values: specific index (1, 2, etc.) or All. Enables iteration.

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.