Inputs
ClickOptions
Input options for the ‘click’ mutation.
Definition
Fields
button
: MouseButton
Mouse button to use for the click. Defaults to LEFT.
clickCount
: Int
Number of times to click the element. Defaults to 1.
delay
: Int
Delay in milliseconds between mousedown and mouseup events. Defaults to 0.
force
: Boolean
Whether to bypass normal actionability checks. Defaults to false.
modifiers
: [ModifierKey]
Array of modifier keys (e.g., SHIFT, CONTROL) to press during the click.
Example: [SHIFT, CONTROL]
position
: PointOptions
Specific point, relative to the element’s top-left corner, to click.
Example: { x: 10, y: 10 }
timeout
: Int
Maximum time in milliseconds to wait for the element to be clickable. Defaults to a global timeout.
trial
: Boolean
If true, the click will not be performed if it would trigger a navigation. Defaults to false.