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