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

x/pptr/mod.ts>BrowserContext#pages

Headless Chrome Deno API
Latest
method BrowserContext.prototype.pages
Re-export
import { BrowserContext } from "https://deno.land/x/pptr@1.2.0/mod.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.