Skip to main content
Version: 19.8.3

Mouse.click() method

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

Signature:

class Mouse {
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>