Syntax
Description
Moves the mouse cursor to the center of an element (by ref) or to absolute screen coordinates. Does not perform a click.Parameters
Element reference from snapshot (e.g.,
@e1, @e2). If provided, cursor moves to element center.Absolute screen coordinates in format
x,y (e.g., 500,300). If provided, cursor moves to exact coordinates.Hold the hover position for N milliseconds after moving. Useful for triggering hover effects.
You must provide either a
ref or --xy, but not both.Examples
Hover over an element by ref
Hover at specific coordinates
Hover with duration
Use Cases
- Trigger hover effects before clicking
- Display tooltips or contextual information
- Position cursor for subsequent drag operations
- Simulate user cursor movement for UI state changes
Related Commands
- mouse-move - Move cursor without ref resolution
- drag - Drag from one point to another
- click - Click element via accessibility API