2022-07-05 13:41:43 +00:00
|
|
|
---
|
|
|
|
sidebar_label: MouseOptions
|
|
|
|
---
|
|
|
|
|
|
|
|
# MouseOptions interface
|
|
|
|
|
2022-10-24 07:07:05 +00:00
|
|
|
#### Signature:
|
2022-07-05 13:41:43 +00:00
|
|
|
|
|
|
|
```typescript
|
|
|
|
export interface MouseOptions
|
|
|
|
```
|
|
|
|
|
|
|
|
## Properties
|
|
|
|
|
2024-03-20 15:03:14 +00:00
|
|
|
<table><thead><tr><th>
|
|
|
|
|
|
|
|
Property
|
|
|
|
|
|
|
|
</th><th>
|
|
|
|
|
|
|
|
Modifiers
|
|
|
|
|
|
|
|
</th><th>
|
|
|
|
|
|
|
|
Type
|
|
|
|
|
|
|
|
</th><th>
|
|
|
|
|
|
|
|
Description
|
|
|
|
|
|
|
|
</th><th>
|
|
|
|
|
|
|
|
Default
|
|
|
|
|
|
|
|
</th></tr></thead>
|
|
|
|
<tbody><tr><td>
|
|
|
|
|
|
|
|
button
|
|
|
|
|
|
|
|
</td><td>
|
|
|
|
|
|
|
|
`optional`
|
|
|
|
|
|
|
|
</td><td>
|
|
|
|
|
|
|
|
[MouseButton](./puppeteer.mousebutton.md)
|
|
|
|
|
|
|
|
</td><td>
|
|
|
|
|
|
|
|
Determines which button will be pressed.
|
|
|
|
|
|
|
|
</td><td>
|
|
|
|
|
|
|
|
`'left'`
|
|
|
|
|
|
|
|
</td></tr>
|
|
|
|
<tr><td>
|
|
|
|
|
|
|
|
clickCount
|
|
|
|
|
|
|
|
</td><td>
|
|
|
|
|
2024-04-04 07:17:26 +00:00
|
|
|
`optional, deprecated`
|
2024-03-20 15:03:14 +00:00
|
|
|
|
|
|
|
</td><td>
|
|
|
|
|
|
|
|
number
|
|
|
|
|
|
|
|
</td><td>
|
|
|
|
|
|
|
|
Determines the click count for the mouse event. This does not perform multiple clicks.
|
|
|
|
|
2024-04-04 07:17:26 +00:00
|
|
|
**Deprecated:**
|
|
|
|
|
|
|
|
Use [MouseClickOptions.count](./puppeteer.mouseclickoptions.count.md).
|
|
|
|
|
2024-03-20 15:03:14 +00:00
|
|
|
</td><td>
|
|
|
|
|
|
|
|
`1`
|
|
|
|
|
|
|
|
</td></tr>
|
|
|
|
</tbody></table>
|