puppeteer/new-docs/puppeteer.browser.waitfortarget.md
Jack Franklin 8a099a0c2c
docs: replace @return with @returns (#6006)
The former is not understood by TSDoc.
2020-06-12 12:38:24 +02:00

777 B

Home > puppeteer > Browser > waitForTarget

Browser.waitForTarget() method

Signature:

waitForTarget(predicate: (x: Target) => boolean, options?: {
        timeout?: number;
    }): Promise<Target>;

Parameters

Parameter Type Description
predicate (x: Target) => boolean
options { timeout?: number; }

Returns:

Promise<Target>

{!Promise<!Target>}