method Page.prototype.waitForNavigationRe-exportimport { Page } from "https://deno.land/x/fresh@1.5.1/tests/deps.ts"; waitForNavigation(options?: WaitForOptions): Promise<HTTPResponse | null>Waits for the page to navigate to a new URL or to reload. It is useful when you run code that will indirectly cause the page to navigate. Waits for the page to navigate to a new URL or to reload. It is useful when you run code that will indirectly cause the page to navigate. ExamplesExample 1 const [response] = await Promise.all([ page.waitForNavigation(), // The promise resolves after navigation has finished page.click('a.my-link'), // Clicking the link will indirectly cause a navigation ]); Parametersoptionaloptions: WaitForOptions Navigation parameters which might have the following properties: ReturnsPromise<HTTPResponse | null>A Promise which resolves to the main resource response. In case of multiple redirects, the navigation will resolve with the response of the last redirect. In case of navigation to a different anchor or navigation due to History API usage, the navigation will resolve with null.