Home > puppeteer > Browser > waitForTarget
Signature:
waitForTarget(predicate: (x: Target) => boolean, options?: {
timeout?: number;
}): Promise<Target>;
Parameter | Type | Description |
---|---|---|
predicate | (x: Target) => boolean | |
options | { timeout?: number; } | {!Promise<!Target>} |
Returns:
Promise<Target>