mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
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>