Back to Puppeteer

Locator.waitHandle() method

docs/api/puppeteer.locator.waithandle.md

19.2.2548 B
Original Source

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

<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<HandleFor<T>>