2020-06-04 14:56:45 +00:00
|
|
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
|
|
|
|
[Home](./index.md) > [puppeteer](./puppeteer.md) > [Mouse](./puppeteer.mouse.md) > [click](./puppeteer.mouse.click.md)
|
|
|
|
|
|
|
|
## Mouse.click() method
|
|
|
|
|
2020-06-24 09:00:13 +00:00
|
|
|
Shortcut for `mouse.move`<!-- -->, `mouse.down` and `mouse.up`<!-- -->.
|
|
|
|
|
2020-06-04 14:56:45 +00:00
|
|
|
<b>Signature:</b>
|
|
|
|
|
|
|
|
```typescript
|
|
|
|
click(x: number, y: number, options?: MouseOptions & {
|
|
|
|
delay?: number;
|
|
|
|
}): Promise<void>;
|
|
|
|
```
|
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
|
|
|
| Parameter | Type | Description |
|
|
|
|
| --- | --- | --- |
|
2020-06-24 09:00:13 +00:00
|
|
|
| x | number | Horizontal position of the mouse. |
|
|
|
|
| y | number | Vertical position of the mouse. |
|
|
|
|
| options | MouseOptions & { delay?: number; } | Optional <code>MouseOptions</code>. |
|
2020-06-04 14:56:45 +00:00
|
|
|
|
|
|
|
<b>Returns:</b>
|
|
|
|
|
|
|
|
Promise<void>
|
|
|
|
|