Set Position

The Set position block is used to define a specific screen position using X and Y coordinates. This value can then be passed to other blocks that require a screen location, such as Click Position, to enable precise interaction with visual elements.

This block is not executable by itself; it acts as a data provider within the automation flow. The Set position block has only one property:

image-20251219-110732.png

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 position onto the canvas.

  2. In the block panel, define a Position value using X and Y coordinates (for example, 150 and 300).

  3. Connect the output of this block to other blocks that accept a position input, such as Click Position.

Building block parameters

Parameters
  • Block header: Shows the current name of the Set position block. You can rename it by double-clicking the header and typing a new title.

  • Position value: Specifies the screen coordinates to use, in the format X, Y.
    The top-left corner of the screen is considered position 0, 0.
    You can expand this field to set X and Y values separately.

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.