puppeteer/docs/api/puppeteer.frame.hover.md

30 lines
511 B
Markdown
Raw Normal View History

2022-07-05 13:41:43 +00:00
---
sidebar_label: Frame.hover
---
# Frame.hover() method
Hovers the pointer over the center of the first element that matches the `selector`.
2022-07-05 13:41:43 +00:00
**Signature:**
```typescript
class Frame {
hover(selector: string): Promise<void>;
}
```
## Parameters
| Parameter | Type | Description |
| --------- | ------ | -------------------------- |
| selector | string | The selector to query for. |
2022-07-05 13:41:43 +00:00
**Returns:**
Promise&lt;void&gt;
## Exceptions
2022-07-05 13:41:43 +00:00
Throws if there's no element matching `selector`.