method Frame.prototype.waitForNavigationimport { Frame } from "https://deno.land/x/puppeteer@16.2.0/vendor/puppeteer-core/puppeteer/common/Frame.d.ts"; waitForNavigation(options?: { timeout?: number; waitUntil?: PuppeteerLifeCycleEvent | PuppeteerLifeCycleEvent[]; }): Promise<HTTPResponse | null>Waits for the frame to navigate. It is useful for when you run code which will indirectly cause the frame to navigate. Waits for the frame to navigate. It is useful for when you run code which will indirectly cause the frame to navigate. Usage of the History API to change the URL is considered a navigation. ExamplesExample 1 const [response] = await Promise.all([ // The navigation promise resolves after navigation has finished frame.waitForNavigation(), // Clicking the link will indirectly cause a navigation frame.click('a.my-link'), ]); Parametersoptionaloptions: { timeout?: number; waitUntil?: PuppeteerLifeCycleEvent | PuppeteerLifeCycleEvent[]; } options to configure when the navigation is consided finished. ReturnsPromise<HTTPResponse | null>a promise that resolves when the frame navigates to a new URL.