Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/pptr/mod.ts>Frame#goto

Headless Chrome Deno API
Latest
method Frame.prototype.goto
Re-export
import { Frame } from "https://deno.land/x/pptr@1.2.0/mod.ts";

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[]; } = [UNSUPPORTED]
  • 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.