2022-07-05 13:41:43 +00:00
|
|
|
---
|
|
|
|
sidebar_label: Frame.hover
|
|
|
|
---
|
|
|
|
|
|
|
|
# Frame.hover() method
|
|
|
|
|
2022-08-10 21:34:29 +00:00
|
|
|
Hovers the pointer over the center of the first element that matches the `selector`.
|
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 Frame {
|
|
|
|
hover(selector: string): Promise<void>;
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
2022-08-10 21:34:29 +00:00
|
|
|
| Parameter | Type | Description |
|
|
|
|
| --------- | ------ | -------------------------- |
|
|
|
|
| selector | string | The selector to query for. |
|
2022-07-05 13:41:43 +00:00
|
|
|
|
|
|
|
**Returns:**
|
|
|
|
|
|
|
|
Promise<void>
|
|
|
|
|
2022-08-10 21:34:29 +00:00
|
|
|
## Exceptions
|
2022-07-05 13:41:43 +00:00
|
|
|
|
2022-08-10 21:34:29 +00:00
|
|
|
Throws if there's no element matching `selector`.
|