drag electron element.md

Drag Electron Element

The Drag Electron Element block is used in Electron UI automation to drag one Electron element onto another within an already open Electron application window. It simulates a drag-and-drop interaction by starting the drag on a source element and releasing it over a destination element.

When fully expanded, the following is an example of the Drag Electron Element block

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

  2. Capture the Start Element and End Element (both required) and optionally configure Electron window and Require valid images as needed.

  3. 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.

Building block parameters

Parameters

An Electron element locator can be captured by right-clicking the field and selecting Capture new Electron element . You can clear the locator by right-clicking and choosing Clear Electron element .

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.
Electron Troubleshooting Guidance and solutions for diagnosing and resolving issues related to Electron-based automation and environments