f
launchBrowser(config: Config): Promise<Browser>
Launches a browser for the given config.browser type.
For chromium: connects via CDP to the pre-launched Chrome (fast path) or falls
back to chromium.launch() if pre-launch failed.
For firefox/webkit: uses playwright's standard launch (requires npx playwright install [browser]).
f
setupBrowser(): Promise<Connections>
config: Config,
cachedContent: CachedContent,
existingBrowser?: Browser | null
Launches a Playwright browser (or reuses an existing one), starts the web server, and returns the page/server/browser connection object.
Usage
import * as mod from "lib/setup/browser.ts";