- Symptom
- Executable doesn't exist at .../chromium-1208/chrome-linux64/chrome after npx playwright install --only-shellExecutable doesn't exist at .../chromium_headless_shell-1208/... after npx playwright install --no-shellHeaded debugging or channel: 'chromium' breaks on a CI image that runs headless tests fine
- Cause
- Playwright ships two Chromium builds: a headless shell for default headless runs and a full build for headed runs and the 'chromium' channel. Each flag skips one of them.
- Fix
- Match the install flag to how tests launch. Use --only-shell only when every run is headless with no channel, and --no-shell only when you set channel: 'chromium'.
- Apply
# default headless only npx playwright install --with-deps --only-shell chromium # headed, or use: { channel: 'chromium' } npx playwright install --with-deps chromium- Affected
- Playwright 1.49 and later (separate headless shell build)
- Sources
Last verified 2026-10-15 · Confirmed by 0 builders