Skip to content

Chore/fix playwright browser install#16

Merged
sadiqk2 merged 2 commits into
mainfrom
chore/fix-playwright-browser-install
May 26, 2026
Merged

Chore/fix playwright browser install#16
sadiqk2 merged 2 commits into
mainfrom
chore/fix-playwright-browser-install

Conversation

@sadiqk2

@sadiqk2 sadiqk2 commented May 26, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

sadiqk2 and others added 2 commits May 26, 2026 12:57
The previous run failed all browser tool calls with
"Browser chrome-for-testing is not installed" — caused by a version
drift between `npx playwright install` (whatever's latest on npm) and
`npx -y @playwright/mcp@latest` (whatever playwright that package
bundles). Pinning the install to use @playwright/mcp's playwright
guarantees the cache path matches.

Also adding `chromium-headless-shell`: Playwright 1.49 split the
headless build into a separate binary, and the MCP config runs with
`--headless`, so it needs the shell binary specifically.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Replaces the previous attempt — `playwright install ... chromium`
installs the standard Chromium build, but @playwright/mcp insists on
Google's `chrome-for-testing` build instead. The previous run's error
explicitly told us the correct command:
  `npx @playwright/mcp install-browser chrome-for-testing`

We still need `playwright install-deps` to bring in the OS-level
libraries (nss, atk, ...) that any chromium-derived binary needs on
ubuntu-latest.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@sadiqk2 sadiqk2 merged commit be4f4d4 into main May 26, 2026
@sadiqk2 sadiqk2 deleted the chore/fix-playwright-browser-install branch May 26, 2026 11:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant