puppeteer/new-docs/puppeteer.frame.waitfornavigation.md

768 B

Home > puppeteer > Frame > waitForNavigation

Frame.waitForNavigation() method

Signature:

waitForNavigation(options?: {
        timeout?: number;
        waitUntil?: PuppeteerLifeCycleEvent | PuppeteerLifeCycleEvent[];
    }): Promise<HTTPResponse | null>;

Parameters

Parameter Type Description
options { timeout?: number; waitUntil?: PuppeteerLifeCycleEvent | PuppeteerLifeCycleEvent[]; }

Returns:

Promise<HTTPResponse | null>