Skip to main content
Module

x/puppeteer/mod.ts>Frame#goto

A port of puppeteer running on Deno
Latest
method Frame.prototype.goto
Re-export
import { Frame } from "https://deno.land/x/puppeteer@16.2.0/mod.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.