The Drag Web Element block is used to drag a web element with the mouse from one place to another in an open browser window. It simulates a drag-and-drop interaction by starting the drag on a source element and dropping it on a destination element.
This block only works with browser windows that were opened using the Start Web Browser block or their child windows.
Fully expanded, the Drag Web 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
-
Drag Drag Web Element onto the canvas.
-
Capture the Start element and End element (both required), then optionally configure Browser window and Require valid imgs.
-
Run the flow when it’s ready.
For a minimal setup, set Start element to the element you want to drag from and End element to the element you want to drop onto, then run the flow with default settings.
Building block parameters
Resources
|
Topic |
Description |
|---|---|
|
Common questions about creating, running, and managing flows in Leapwork. |
|
|
Guidelines and solutions for identifying and fixing issues that occur when building or running flows in Leapwork. |
|
|
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. |