I've done playwright-cli install-browser, and all browsers are installed/extracted in ~/Library/Caches/ms-playwright, but playwright-cli open --browser chrome still using hardcoded path /Applications/Google Chrome.app/Contents/MacOS/Google Chrome instead of ~/Library/Caches/ms-playwright/chromium-1224/chrome-mac-arm64/Google Chrome for Testing.app/Contents/MacOS/Google Chrome for Testing
$ playwright-cli open --browser chrome
/opt/homebrew/Cellar/playwright-cli/0.1.13/libexec/lib/node_modules/@playwright/cli/node_modules/playwright-core/lib/tools/cli-client/session.js:167
const rejectWithPid = (reject, message) => reject(Object.assign(new Error(`Daemon pid=${child.pid}: ${message}`), { daemonPid: child.pid }));
^
Error: Daemon pid=20025: Chromium distribution 'chrome' is not found at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
Run "npx playwright install chrome"
at rejectWithPid (/opt/homebrew/Cellar/playwright-cli/0.1.13/libexec/lib/node_modules/@playwright/cli/node_modules/playwright-core/lib/tools/cli-client/session.js:167:69)
at Socket.<anonymous> (/opt/homebrew/Cellar/playwright-cli/0.1.13/libexec/lib/node_modules/@playwright/cli/node_modules/playwright-core/lib/tools/cli-client/session.js:177:11)
at Socket.emit (node:events:509:20)
at addChunk (node:internal/streams/readable:564:12)
at readableAddChunkPushByteMode (node:internal/streams/readable:515:3)
at Readable.push (node:internal/streams/readable:395:5)
at Pipe.onStreamRead (node:internal/stream_base_commons:189:23) {
daemonPid: 20025
}
Node.js v26.0.0
I'm on playwright-cli 0.1.13, installed by homebrew. The tool should first check the default path /Applications/Google Chrome.app/Contents/MacOS/Google Chrome , and then the download path ~/Library/Caches/ms-playwright/chromium-1224/chrome-mac-arm64/Google Chrome for Testing.app/Contents/MacOS/Google Chrome for Testing.
It would be better if we can choose custom path and custom chrome/chromium-based browser like Brave Browser.
I've done
playwright-cli install-browser, and all browsers are installed/extracted in~/Library/Caches/ms-playwright, butplaywright-cli open --browser chromestill using hardcoded path/Applications/Google Chrome.app/Contents/MacOS/Google Chromeinstead of~/Library/Caches/ms-playwright/chromium-1224/chrome-mac-arm64/Google Chrome for Testing.app/Contents/MacOS/Google Chrome for Testing$ playwright-cli open --browser chrome /opt/homebrew/Cellar/playwright-cli/0.1.13/libexec/lib/node_modules/@playwright/cli/node_modules/playwright-core/lib/tools/cli-client/session.js:167 const rejectWithPid = (reject, message) => reject(Object.assign(new Error(`Daemon pid=${child.pid}: ${message}`), { daemonPid: child.pid })); ^ Error: Daemon pid=20025: Chromium distribution 'chrome' is not found at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome Run "npx playwright install chrome" at rejectWithPid (/opt/homebrew/Cellar/playwright-cli/0.1.13/libexec/lib/node_modules/@playwright/cli/node_modules/playwright-core/lib/tools/cli-client/session.js:167:69) at Socket.<anonymous> (/opt/homebrew/Cellar/playwright-cli/0.1.13/libexec/lib/node_modules/@playwright/cli/node_modules/playwright-core/lib/tools/cli-client/session.js:177:11) at Socket.emit (node:events:509:20) at addChunk (node:internal/streams/readable:564:12) at readableAddChunkPushByteMode (node:internal/streams/readable:515:3) at Readable.push (node:internal/streams/readable:395:5) at Pipe.onStreamRead (node:internal/stream_base_commons:189:23) { daemonPid: 20025 } Node.js v26.0.0I'm on
playwright-cli0.1.13, installed by homebrew. The tool should first check the default path/Applications/Google Chrome.app/Contents/MacOS/Google Chrome, and then the download path~/Library/Caches/ms-playwright/chromium-1224/chrome-mac-arm64/Google Chrome for Testing.app/Contents/MacOS/Google Chrome for Testing.It would be better if we can choose custom path and custom chrome/chromium-based browser like Brave Browser.