Drag Mouse | Leapwork Docs

The Drag mouse block simulates a mouse drag action on the screen, moving from one point to another while holding down a mouse button. This action is useful for dragging items across the screen, selecting areas, or triggering UI behaviors that rely on click-and-drag gestures.

The block typically receives its Start position and End position from upstream blocks such as Find image, Get text, or Get number, which provide dynamic coordinates.

Fully expanded, the Drag mouse 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 Drag mouse onto the canvas.
  2. Connect dynamic values or enter coordinates for Start position and End position.
  3. Adjust Button, Speed, or Await no movement if needed.
  4. Run the flow when it’s ready.

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.