2023-07-27 08:47:29 +00:00
|
|
|
---
|
|
|
|
sidebar_label: Locator.waitHandle
|
|
|
|
---
|
|
|
|
|
|
|
|
# Locator.waitHandle() method
|
|
|
|
|
|
|
|
Waits for the locator to get a handle from the page.
|
|
|
|
|
|
|
|
#### Signature:
|
|
|
|
|
|
|
|
```typescript
|
|
|
|
class Locator {
|
|
|
|
waitHandle(options?: Readonly<ActionOptions>): Promise<HandleFor<T>>;
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
2024-03-20 15:03:14 +00:00
|
|
|
<table><thead><tr><th>
|
2023-07-27 08:47:29 +00:00
|
|
|
|
2024-03-20 15:03:14 +00:00
|
|
|
Parameter
|
|
|
|
|
|
|
|
</th><th>
|
|
|
|
|
|
|
|
Type
|
|
|
|
|
|
|
|
</th><th>
|
|
|
|
|
|
|
|
Description
|
|
|
|
|
|
|
|
</th></tr></thead>
|
|
|
|
<tbody><tr><td>
|
|
|
|
|
|
|
|
options
|
|
|
|
|
|
|
|
</td><td>
|
|
|
|
|
|
|
|
Readonly<[ActionOptions](./puppeteer.actionoptions.md)>
|
|
|
|
|
|
|
|
</td><td>
|
|
|
|
|
|
|
|
_(Optional)_
|
|
|
|
|
|
|
|
</td></tr>
|
|
|
|
</tbody></table>
|
2023-07-27 08:47:29 +00:00
|
|
|
**Returns:**
|
|
|
|
|
|
|
|
Promise<[HandleFor](./puppeteer.handlefor.md)<T>>
|