Skip to main content

Module browser_type

Module browser_type 

Source
Expand description

BrowserTypeJs: JS wrapper around ferridriver::BrowserType.

Exposes chromium() / firefox() / webkit() as global factories mirroring Playwright’s import { chromium, firefox, webkit } from 'playwright'. Each returns a BrowserType carrying name(), executablePath(), launch(), connect(), connectOverCDP(), and launchPersistentContext().

Playwright reference: /tmp/playwright/packages/playwright-core/src/client/browserType.ts.

Structs§

BrowserTypeJs

Functions§

install_browser_type
Install the top-level chromium, firefox, and webkit globals. Mirrors Playwright’s import { chromium, firefox, webkit } exactly: chromium() is ALWAYS Chromium, firefox() ALWAYS Firefox, webkit() ALWAYS WebKit. The wire backend is a per-product detail (Chromium pipe vs chromium({transport:'ws'}); Firefox speaks BiDi) — never a product swap.