2023-06-02 17:46:10 +00:00
|
|
|
---
|
|
|
|
sidebar_label: Locator.hover
|
|
|
|
---
|
|
|
|
|
|
|
|
# Locator.hover() method
|
|
|
|
|
|
|
|
#### Signature:
|
|
|
|
|
|
|
|
```typescript
|
|
|
|
class Locator {
|
2023-07-25 10:43:07 +00:00
|
|
|
hover<ElementType extends Element>(
|
2023-07-19 15:39:38 +00:00
|
|
|
this: Locator<ElementType>,
|
|
|
|
options?: Readonly<ActionOptions>
|
|
|
|
): Promise<void>;
|
2023-06-02 17:46:10 +00:00
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
2023-07-19 15:39:38 +00:00
|
|
|
| Parameter | Type | Description |
|
|
|
|
| --------- | ------------------------------------------------------------- | ------------ |
|
|
|
|
| this | [Locator](./puppeteer.locator.md)<ElementType> | |
|
|
|
|
| options | Readonly<[ActionOptions](./puppeteer.actionoptions.md)> | _(Optional)_ |
|
2023-06-02 17:46:10 +00:00
|
|
|
|
|
|
|
**Returns:**
|
|
|
|
|
|
|
|
Promise<void>
|