Skip to main content
Version: Next

Mouse.click() method

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

Signature:

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

Parameters

ParameterTypeDescription
xnumberHorizontal position of the mouse.
ynumberVertical position of the mouse.
optionsMouseClickOptions(Optional) Options to configure behavior.

Returns:

Promise<void>