2024-03-25 13:03:57 +00:00
|
|
|
---
|
|
|
|
sidebar_label: MouseOptions
|
|
|
|
---
|
|
|
|
|
|
|
|
# MouseOptions interface
|
|
|
|
|
|
|
|
#### Signature:
|
|
|
|
|
|
|
|
```typescript
|
|
|
|
export interface MouseOptions
|
|
|
|
```
|
|
|
|
|
|
|
|
## Properties
|
|
|
|
|
|
|
|
<table><thead><tr><th>
|
|
|
|
|
|
|
|
Property
|
|
|
|
|
|
|
|
</th><th>
|
|
|
|
|
|
|
|
Modifiers
|
|
|
|
|
|
|
|
</th><th>
|
|
|
|
|
|
|
|
Type
|
|
|
|
|
|
|
|
</th><th>
|
|
|
|
|
|
|
|
Description
|
|
|
|
|
|
|
|
</th><th>
|
|
|
|
|
|
|
|
Default
|
|
|
|
|
|
|
|
</th></tr></thead>
|
|
|
|
<tbody><tr><td>
|
|
|
|
|
2024-04-11 16:51:07 +00:00
|
|
|
<span id="button">button</span>
|
2024-03-25 13:03:57 +00:00
|
|
|
|
|
|
|
</td><td>
|
|
|
|
|
|
|
|
`optional`
|
|
|
|
|
|
|
|
</td><td>
|
|
|
|
|
|
|
|
[MouseButton](./puppeteer.mousebutton.md)
|
|
|
|
|
|
|
|
</td><td>
|
|
|
|
|
|
|
|
Determines which button will be pressed.
|
|
|
|
|
|
|
|
</td><td>
|
|
|
|
|
|
|
|
`'left'`
|
|
|
|
|
|
|
|
</td></tr>
|
|
|
|
<tr><td>
|
|
|
|
|
2024-04-11 16:51:07 +00:00
|
|
|
<span id="clickcount">clickCount</span>
|
2024-03-25 13:03:57 +00:00
|
|
|
|
|
|
|
</td><td>
|
|
|
|
|
2024-04-05 13:11:52 +00:00
|
|
|
`optional, deprecated`
|
2024-03-25 13:03:57 +00:00
|
|
|
|
|
|
|
</td><td>
|
|
|
|
|
|
|
|
number
|
|
|
|
|
|
|
|
</td><td>
|
|
|
|
|
|
|
|
Determines the click count for the mouse event. This does not perform multiple clicks.
|
|
|
|
|
2024-04-05 13:11:52 +00:00
|
|
|
**Deprecated:**
|
|
|
|
|
2024-04-11 16:51:07 +00:00
|
|
|
Use [MouseClickOptions.count](./puppeteer.mouseclickoptions.md#count).
|
2024-04-05 13:11:52 +00:00
|
|
|
|
2024-03-25 13:03:57 +00:00
|
|
|
</td><td>
|
|
|
|
|
|
|
|
`1`
|
|
|
|
|
|
|
|
</td></tr>
|
|
|
|
</tbody></table>
|