Overview
TheHOVER step moves the mouse cursor over an element to trigger hover states. This is useful for revealing tooltips, dropdown menus, or any UI elements that respond to mouse hover events.
Parameters
Element selector to hover over
How long to maintain the hover state (in milliseconds)
X offset from the hover position (in pixels)
Y offset from the hover position (in pixels)
Position on the element to hover at:
center- Center of the elementtopLeft- Top-left cornertopRight- Top-right cornerbottomLeft- Bottom-left cornerbottomRight- Bottom-right corner
Behavior
- Element Location: Finds the element using the provided selector
- Position Calculation: Calculates hover position based on position and offset parameters
- Mouse Movement: Moves the mouse to the calculated position
- Hover State: Maintains hover for the specified duration
- Event Triggering: Fires mouseover, mouseenter, and related events
Common Use Cases
- Revealing dropdown menus
- Showing tooltips or popovers
- Triggering CSS hover states
- Testing hover-based navigation
- Revealing hidden action buttons
- Testing image zoom on hover
Error Handling
The step will fail if:- The element cannot be found using the selector
- The element is not visible
- The element is not hoverable (e.g., disabled or covered)
- The mouse cannot be moved to the specified position

