Click Electron Position

The Click Electron Position block is used to perform a mouse click at a specific position (X, Y coordinates) in an Electron application window. It is useful when you already have a position value from another block (for example, Position found from a locator block) and want to replay a click at that exact location rather than targeting a captured element again.

Fully expanded, the Click Electron Position block shows the following properties:

image-20260119-130517.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 Click Electron Position onto the canvas.

  2. Connect it in the flow and provide a Position value; optionally adjust the Button and Electron window parameters as needed.

  3. Run the flow when it’s ready to execute the click at the specified position.

Building block parameters

Parameters
  • Block header: Shows the current name of the Click Electron Position block. You can rename it by double-clicking the header and typing a new title. The green input connector (top left) triggers the block when the flow reaches it, and the green output connector (top right) triggers once the click at the Electron position has completed successfully.

  • Position; Contains the application canvas position where the click should be performed, represented as X and Y coordinates. This value is typically provided by another block (for example, a Position found output), but it can also be set manually. The coordinates are relative to the Electron application canvas.

  • Button: Defines which mouse button to use for the click and whether it should be a single or double click. By default, the Left mouse button is selected. You can change this to other supported button options depending on the interaction you want to perform.

  • Electron window: Holds the handle to the Electron window in which the click should take place. Once an Electron window is found and focus is set, this property can be passed between blocks so that multiple actions target the same window. This is especially useful when several Electron windows may be open during a test run and you need to direct other building blocks to a specific one.

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