mirror of
https://github.com/siemens-mobile-hacks/web-tools.git
synced 2026-11-25 17:17:22 +00:00
6 lines
268 B
TypeScript
6 lines
268 B
TypeScript
import { chromium, type Browser } from 'playwright';
|
|
|
|
// CHROME_PATH, else the Chromium of `pnpm exec playwright install chromium`
|
|
export function launchBrowser(): Promise<Browser> {
|
|
return chromium.launch({ executablePath: process.env.CHROME_PATH || undefined });
|
|
}
|