2023-07-20 07:36:56 +00:00
|
|
|
---
|
|
|
|
sidebar_label: Locator.hover
|
|
|
|
---
|
|
|
|
|
|
|
|
# Locator.hover() method
|
|
|
|
|
|
|
|
#### Signature:
|
|
|
|
|
|
|
|
```typescript
|
|
|
|
class Locator {
|
2023-08-02 12:50:46 +00:00
|
|
|
hover<ElementType extends Element>(
|
2023-07-20 07:36:56 +00:00
|
|
|
this: Locator<ElementType>,
|
|
|
|
options?: Readonly<ActionOptions>
|
|
|
|
): Promise<void>;
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
|
|
|
| Parameter | Type | Description |
|
|
|
|
| --------- | ------------------------------------------------------------- | ------------ |
|
|
|
|
| this | [Locator](./puppeteer.locator.md)<ElementType> | |
|
|
|
|
| options | Readonly<[ActionOptions](./puppeteer.actionoptions.md)> | _(Optional)_ |
|
|
|
|
|
|
|
|
**Returns:**
|
|
|
|
|
|
|
|
Promise<void>
|