Skip to main content
Version: 21.3.1

Mouse.move() method

Moves the mouse to the given coordinate.

Signature:

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