Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 774 Bytes

puppeteer.browser.waitfortarget.md

File metadata and controls

25 lines (16 loc) · 774 Bytes

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; } {!Promise<!Target>}

Returns:

Promise<Target>