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

x/pptr/src/Browser.ts>BrowserContext#pages

Headless Chrome Deno API
Latest
method BrowserContext.prototype.pages
import { BrowserContext } from "https://deno.land/x/pptr@1.2.0/src/Browser.ts";

An array of all pages inside the browser context.

Returns

Promise<Page[]>

Promise which resolves to an array of all open pages. Non visible pages, such as "background_page", will not be listed here. You can find them using Target.page | the target page.