Skip to main content

Overview

Move the mouse cursor over elements or specific coordinates without clicking, useful for revealing tooltips, dropdowns, and hover effects.

Element Hover

Hover over a located element.

Syntax

Returns

Promise<void>

Examples

Coordinate Hover

Hover at specific screen coordinates.

Syntax

Parameters

number
required
X coordinate
number
required
Y coordinate

Returns

Promise<void>

Examples

Best Practices

Prefer element hover over coordinates
Wait after hovering for dynamic content
Verify element was found before hovering

Use Cases

Complete Example