Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
class BrowserFetcher
import { BrowserFetcher } from "https://deno.land/x/pptr@1.2.0/src/BrowserFetcher.ts";

BrowserFetcher can download and manage different versions of Chromium and Firefox.

Examples

An example of using BrowserFetcher to download a specific version of Chromium and running Puppeteer against it:

const browserFetcher = puppeteer.createBrowserFetcher();
const revisionInfo = await browserFetcher.download('533271');
const browser = await puppeteer.launch({executablePath: revisionInfo.executablePath})

NOTE BrowserFetcher is not designed to work concurrently with other instances of BrowserFetcher that share the same downloads directory.

Constructors

new
BrowserFetcher(options?: BrowserFetcherOptions)

Properties

private
_downloadHost: string
private
_downloadsFolder: string
private
_platform
private
_product: Product

Methods

_getFolderPath(revision: string): string
host(): string