Back to Docs
Interaction

click-ref

Click an element by its @N reference number from the last a11y-snapshot. Uses real mouse events via CDP Input domain.

Usage

$ cdpilot click-ref <@N>

Arguments

NameRequiredDescription
@NrequiredReference number from a11y-snapshot (e.g. @3, @15)

Examples

Click the element labeled @3 in the last snapshot

$ npx cdpilot click-ref @3