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