-
Notifications
You must be signed in to change notification settings - Fork 275
Open
Description
Version
@playwright/cli:0.1.1- bundled
playwright:1.59.0-alpha-1771104257000 - Node:
v24.14.0 - OS: Linux (WSL2)
Repro
.playwright/cli.config.json:
{
"browser": {
"browserName": "chromium"
}
}Run:
playwright-cli open --config=.playwright/cli.config.json https://example.comExpected
Plain Playwright Chromium should launch, since only browserName: "chromium" is configured.
Actual
playwright-cli still behaves as if launchOptions.channel is set to "chrome".
Without env overrides I get:
browserType.launch: Chromium distribution 'chrome' is not found at /opt/google/chrome/chrome
Run "npx playwright install chrome"Likely cause
playwright/lib/mcp/browser/config.js defaults to:
browser: {
browserName: "chromium",
launchOptions: {
channel: "chrome"
}
}and mergeConfig() preserves that default channel even when config only sets browserName. So there is no way to express “use Chromium with no channel” via JSON config.
Notes
Direct Playwright works when no channel is passed:
const { chromium } = require('playwright');
await chromium.launchPersistentContext(userDataDir, { headless: true });This seems specific to playwright-cli config resolution, not Playwright itself.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels