Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Latest
method Frame.prototype.goto
import { Frame } from "https://deno.land/x/puppeteer@16.2.0/vendor/puppeteer-core/puppeteer/common/Frame.d.ts";

Navigates a frame to the given url.

Parameters

url: string
  • the URL to navigate the frame to. This should include the scheme, e.g. https://.
optional
options: { referer?: string; timeout?: number; waitUntil?: PuppeteerLifeCycleEvent | PuppeteerLifeCycleEvent[]; }
  • navigation options. waitUntil is useful to define when the navigation should be considered successful - see the docs for PuppeteerLifeCycleEvent for more details.

Returns

Promise<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.