2022-07-05 13:41:43 +00:00
|
|
|
---
|
|
|
|
sidebar_label: Mouse.move
|
|
|
|
---
|
|
|
|
|
|
|
|
# Mouse.move() method
|
|
|
|
|
2023-04-17 08:56:51 +00:00
|
|
|
Moves the mouse to the given coordinate.
|
2022-07-05 13:41:43 +00:00
|
|
|
|
2022-10-24 07:07:05 +00:00
|
|
|
#### Signature:
|
2022-07-05 13:41:43 +00:00
|
|
|
|
|
|
|
```typescript
|
|
|
|
class Mouse {
|
2023-11-09 12:57:33 +00:00
|
|
|
abstract move(
|
2023-06-19 08:12:43 +00:00
|
|
|
x: number,
|
|
|
|
y: number,
|
|
|
|
options?: Readonly<MouseMoveOptions>
|
|
|
|
): Promise<void>;
|
2022-07-05 13:41:43 +00:00
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
2023-06-19 08:12:43 +00:00
|
|
|
| Parameter | Type | Description |
|
|
|
|
| --------- | ------------------------------------------------------------------- | ------------------------------------------- |
|
|
|
|
| x | number | Horizontal position of the mouse. |
|
|
|
|
| y | number | Vertical position of the mouse. |
|
|
|
|
| options | Readonly<[MouseMoveOptions](./puppeteer.mousemoveoptions.md)> | _(Optional)_ Options to configure behavior. |
|
2022-07-05 13:41:43 +00:00
|
|
|
|
|
|
|
**Returns:**
|
|
|
|
|
|
|
|
Promise<void>
|