Skip to content

fix(mcp): mention PLAYWRIGHT_MCP_EXECUTABLE_PATH in extension not found error - #42122

Merged
Yury Semikhatsky (yury-s) merged 1 commit into
microsoft:mainfrom
yury-s:fix-42092
Aug 4, 2026
Merged

fix(mcp): mention PLAYWRIGHT_MCP_EXECUTABLE_PATH in extension not found error#42122
Yury Semikhatsky (yury-s) merged 1 commit into
microsoft:mainfrom
yury-s:fix-42092

Conversation

@yury-s

Copy link
Copy Markdown
Member

Summary

  • Suggest the PLAYWRIGHT_MCP_EXECUTABLE_PATH environment variable in the "Playwright Extension not found" error, for browsers at custom locations (e.g. a Windows host browser from WSL2).

Fixes #42092

@github-actions

github-actions Bot commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Test results for "MCP"

1 failed
❌ [firefox] › mcp/annotate.spec.ts:446 › should switch screencast to -s session on show --annotate @mcp-windows-latest-firefox

8049 passed, 1284 skipped


Merge workflow run.

@github-actions

github-actions Bot commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Hi, I'm the Playwright bot and I took a first look at the CI failures.

🟢 The one failure is a pre-existing flake — this PR is clear

The single red test is unrelated to this PR, which only changes an error-message string in extensionContextFactory.ts.

Details

Overall: 1 failed, 8049 passed. The failure is a known cross-run flake with no connection to the diff.

Pre-existing flake / infra

  • [firefox] › mcp/annotate.spec.ts:446 › should switch screencast to -s session on show --annotate @mcp-windows-latest-firefox — pre-existing flake. On the mcp-windows-latest-firefox bot this test has failed 19 of 373 runs (5%) and passed the other 354, and it flips verdict across every browser project (firefox 31/618, chromium 9/626, chrome 5/634, webkit 8/631). It has failed on ~11 unrelated SHAs/PRs, including pushes to main (e.g. runs 30559579801, 30374719497, 30282186229). This PR only edits the text of the "Playwright Extension not found" error in extensionContextFactory.ts — it doesn't touch the screencast/annotate/session code path this test exercises.

Triaged by the Playwright bot - agent run

@yury-s
Yury Semikhatsky (yury-s) merged commit b637a5a into microsoft:main Aug 4, 2026
17 of 18 checks passed
@yury-s
Yury Semikhatsky (yury-s) deleted the fix-42092 branch August 4, 2026 18:45
Yury Semikhatsky (yury-s) added a commit to microsoft/playwright-mcp that referenced this pull request Aug 6, 2026
## What's New

### Tool Improvements

- **`browser_take_screenshot` — WebP format** — New `type` option to
pick the image format (`png`, `jpeg` or `webp`); when unset, the format
is inferred from the filename extension
([#41152](microsoft/playwright#41152))
- **`--codegen` — more languages** — Code generation now supports
`python`, `java` and `csharp` in addition to `typescript`
([#42106](microsoft/playwright#42106))
- **Configurable settle delay** — New `--timeout-settle` flag (and
`timeouts.settle` config option) to control how long to wait after each
action for triggered work (navigations, requests) to settle, defaults to
500ms ([#41924](microsoft/playwright#41924))

## Fixes

- Aria snapshot capture is skipped when the response discards it
([#41923](microsoft/playwright#41923))
- New `--snapshot-boxes` flag (and `snapshot.boxes` config option) to
enable bounding boxes in snapshots globally — previously this was only
available per command
([#42102](microsoft/playwright#42102))
- Reconnect to the browser after a disconnect
([#41966](microsoft/playwright#41966))
- Report malformed JSON config instead of silently falling back to INI
parsing ([#41909](microsoft/playwright#41909))
- Clear the dialog modal state when a dialog is closed out of band
([#42032](microsoft/playwright#42032))
- Detect downloads via the download event instead of guessing from
`net::ERR_ABORTED` navigation errors
([#41933](microsoft/playwright#41933))
- Surface the missing executable path when a browser isn't installed
([#41941](microsoft/playwright#41941))
- Escape user input in codegen output
([#41962](microsoft/playwright#41962))
- Removed the stale `--output-mode` CLI option
([#41833](microsoft/playwright#41833))

### Browser Extension

- Validate `Host` and `Origin` headers on CDP relay WebSocket upgrades
([#42103](microsoft/playwright#42103))
- Launch the Chrome profile that has the extension installed
([#41939](microsoft/playwright#41939))
- Pass `noDefaults` for extension CDP connections
([#42119](microsoft/playwright#42119))
- Mention `PLAYWRIGHT_MCP_EXECUTABLE_PATH` in the error shown when the
browser executable is not found
([#42122](microsoft/playwright#42122))
- Removed support for extension protocol v1
([#41857](microsoft/playwright#41857))
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.

[CLI]: attach --extension can't find Windows-host extension on WSL2; working config needs undocumented env vars

2 participants