Skip to main content

Mouse.click() method

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

Signature:
click(x: number, y: number, options?: MouseOptions & {
delay?: number;
}): Promise<void>;

Parameters

ParameterTypeDescription
xnumberHorizontal position of the mouse.
ynumberVertical position of the mouse.
optionsMouseOptions & { delay?: number; }(Optional) Optional MouseOptions.
Returns:

Promise<void>