Mouse Actions

Deterministic targets for hover, movement, mouse buttons, and click assertions.

Hover and leave

Hover the primary target to change its color, then move to the neutral target.

Not hovered.

Viewport movement

Every mouse move records its viewport coordinates for exact assertions.

Move anywhere in the viewport

Position: x=0, y=0. Moves: 0.

Mouse down and up

Press and release can be asserted independently through the target state.

State: idle.

Single click

A regular click increments an isolated counter.

Clicks: 0.

Double click

A double-click event increments its own counter without sharing the single-click target.

Double clicks: 0.

Right click

The native menu is suppressed while the context-menu event is counted.

Context menus: 0.

Event log

Events use monotonic indexes and contain no timestamps or random values.

  1. No mouse events recorded.