783 B
783 B
Home > puppeteer > Page > waitForFunction
Page.waitForFunction() method
Signature:
waitForFunction(pageFunction: Function | string, options?: {
timeout?: number;
polling?: string | number;
}, ...args: unknown[]): Promise<JSHandle>;
Parameters
Parameter | Type | Description |
---|---|---|
pageFunction | Function | string | |
options | { timeout?: number; polling?: string | number; } | |
args | unknown[] |
Returns:
Promise<JSHandle>