Skip to main content
Version: 21.6.1

Mouse.move() method

Moves the mouse to the given coordinate.

Signature:

class Mouse {
abstract move(
x: number,
y: number,
options?: Readonly<MouseMoveOptions>
): Promise<void>;
}

Parameters

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

Returns:

Promise<void>