Skip to main content
Module

x/astral/mod.ts>Browser

A high-level puppeteer/playwright-like library for Deno
Go to Latest
class Browser
Re-export
import { Browser } from "https://deno.land/x/astral@0.2.1/mod.ts";

The browser class is instantiated when you run the launch method.

Examples

Example 1

const browser = await launch();

Properties

readonly
pages: Page[]

Methods

Closes the browser and all of its pages (if any were opened). The Browser object itself is considered to be disposed and cannot be used anymore.

newPage(url?: string, options?: WaitForOptions)

Promise which resolves to a new Page object.

The browser's original user agent.

A string representing the browser name and version.

The browser's websocket endpoint