Skip to main content
Version: 21.4.0

Mouse.click() method

Shortcut for mouse.move, mouse.down and mouse.up.

Signature:

class Mouse {
click(
x: number,
y: number,
options?: Readonly<MouseClickOptions>
): Promise<void>;
}

Parameters

ParameterTypeDescription
xnumberHorizontal position of the mouse.
ynumberVertical position of the mouse.
optionsReadonly<MouseClickOptions>(Optional) Options to configure behavior.

Returns:

Promise<void>