puppeteer/new-docs/puppeteer.page.waitforfunction.md

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>