2023-07-25 14:43:18 +00:00
|
|
|
---
|
|
|
|
sidebar_label: Locator.wait
|
|
|
|
---
|
|
|
|
|
|
|
|
# Locator.wait() method
|
|
|
|
|
|
|
|
Waits for the locator to get the serialized value from the page.
|
|
|
|
|
|
|
|
Note this requires the value to be JSON-serializable.
|
|
|
|
|
|
|
|
#### Signature:
|
|
|
|
|
|
|
|
```typescript
|
|
|
|
class Locator {
|
|
|
|
wait(options?: Readonly<ActionOptions>): Promise<T>;
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
2024-03-20 15:03:14 +00:00
|
|
|
<table><thead><tr><th>
|
2023-07-25 14:43:18 +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-25 14:43:18 +00:00
|
|
|
**Returns:**
|
|
|
|
|
|
|
|
Promise<T>
|