page.mouse.
Methods
move
Moves the mouse to the specified position.The x coordinate to move to
The y coordinate to move to
Number of intermediate steps to use when moving the mouse. Defaults to 1 (instant movement).
down
Presses a mouse button without releasing it.The button to press. Defaults to ‘left’.
Number of times the button is clicked. Defaults to 1.
up
Releases a mouse button.The button to release. Defaults to ‘left’.
Number of times the button is clicked. Defaults to 1.
click
Clicks at the specified position.The x coordinate to click at
The y coordinate to click at
The button to click. Defaults to ‘left’.
Number of times to click. Defaults to 1.
Time to wait between mousedown and mouseup in milliseconds. Defaults to 0.
dblclick
Double-clicks at the specified position.The x coordinate to double-click at
The y coordinate to double-click at
The button to click. Defaults to ‘left’.
Time to wait between clicks in milliseconds. Defaults to 0.
wheel
Scrolls the page using the mouse wheel.Horizontal scroll amount in pixels
Vertical scroll amount in pixels
