Back to Puppeteer

Locator.wait() method

website/versioned_docs/version-24.40.0/api/puppeteer.locator.wait.md

19.2.2547 B
Original Source

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

<table><thead><tr><th>

Parameter

</th><th>

Type

</th><th>

Description

</th></tr></thead> <tbody><tr><td>

options

</td><td>

Readonly<ActionOptions>

</td><td>

(Optional)

</td></tr> </tbody></table>

Returns:

Promise<T>