import { BrowserFetcher } from "https://deno.land/x/pptr@1.2.0/mod.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:
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)Methods
_getFolderPath(revision: string): string
host(): string
revisionInfo(revision: string): BrowserFetcherRevisionInfo