[Home](./index.md) > [puppeteer](./puppeteer.md) > [BrowserContext](./puppeteer.browsercontext.md) > [waitForTarget](./puppeteer.browsercontext.waitfortarget.md) ## BrowserContext.waitForTarget() method Signature: ```typescript waitForTarget(predicate: (x: Target) => boolean, options: { timeout?: number; }): Promise; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | predicate | (x: [Target](./puppeteer.target.md)) => boolean | | | options | { timeout?: number; } | | Returns: Promise<[Target](./puppeteer.target.md)>