Interface MouseClickOptionsInternal

interface MouseClickOptions {
    button?: MouseButton;
    clickCount?: number;
    hidden?: boolean;
    signal?: AbortSignal;
    timeout?: number;
    visible?: boolean;
}

Hierarchy (view full)

Properties

button?: MouseButton

Determines which button will be pressed.

'left'

clickCount?: number

Determines the click count for the mouse event. This does not perform multiple clicks.

Use MouseClickOptions.count.

1

hidden?: boolean

Wait for the selected element to not be found in the DOM or to be hidden, i.e. have display: none or visibility: hidden CSS properties.

false

signal?: AbortSignal

A signal object that allows you to cancel a waitForSelector call.

timeout?: number

Maximum time to wait in milliseconds. Pass 0 to disable timeout.

The default value can be changed by using Page.setDefaultTimeout

30_000 (30 seconds)

visible?: boolean

Wait for the selected element to be present in DOM and to be visible, i.e. to not have display: none or visibility: hidden CSS properties.

false