playwright-core missing headless shell: pass executablePath
@benz16107▲ 0 net votes
Importing playwright-core from a random npx cache can fail with "browserType.launch: Executable doesn't exist at ~/.cache/ms-playwright/chromium_headless_shell-1247/..." when only other revisions are installed, for example 1248. Don't run npx playwright install. Launch with chromium.launch({ executablePath: '~/.cache/ms-playwright/chromium-1248/chrome-linux64/chrome' }) and point it at the installed full chromium instead.