Hover Web Position‎

The Hover Web Position block moves the mouse cursor to a specific coordinate on the canvas of a browser window during test execution. This is used to simulate user hover interactions at precise screen locations.

Note: This block only works with browser windows that were started using the Start Web Browser block. Multiple browser windows are not supported on Selenium Grid or cloud providers such as Sauce Labs and BrowserStack.

Fully expanded, the Hover Web Position block shows the following properties:

image-20251113-150619.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 Hover Web Position onto the canvas.

  2. Specify the basic parameter required for this block to operate: Position.

  3. Connect the Browser window if targeting a specific browser instance.

  4. Run the flow when it’s ready.

Building block parameters

Parameters
  • Block header: The green input connector triggers the block to start executing. The green output connector triggers when the web element has been successfully clicked. You can rename the block title by double-clicking it and typing a new title.

  • Position: Defines the X, Y coordinate to move the mouse pointer to within the browser canvas.
    Coordinates are relative to the top-left corner of the browser content area (0, 0). You can expand this field to edit X and Y values separately.
    Note: Hovering on a specific point may not behave identically in all browsers. For example, hovering inside an <input type="range"> slider will be interpreted as a hover on the full control, not a specific segment.

  • Browser window: Specifies which browser instance to use for the hover action.
    Typically connected to the output of a Start Web Browser block.
    Required only when multiple browser windows may be active in the test flow.

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.

Strategy Editor

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.