Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 735 Bytes

puppeteer.browsercontext.waitfortarget.md

File metadata and controls

25 lines (16 loc) · 735 Bytes

Home > puppeteer > BrowserContext > waitForTarget

BrowserContext.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>