Playwright 错误
browserType.launch: Executable doesn't exist at <path>
路径是 Playwright 查找浏览器的位置,例如 C:\Users\...\ms-playwright\chromium-1179\chrome-win\chrome.exe。Playwright MCP 会把同一条信息包在“浏览器初始化失败”中。
Playwright 查找了它的浏览器。
下载的文件缺失或已过期。
这是什么意思
每个 Playwright 版本都会查找随其发布的浏览器构建,此处为 chromium-1179。全新安装、更新、换用其他用户账号或清除缓存,都会导致该构建缺失。
Playwright MCP 和 Playwright 各自独立发布版本,因此 MCP 需要的构建版本可能与你手动安装的不同(问题 1091)。
修复
- 运行
npx playwright install。这是 Playwright 在错误下方的方框中给出的命令。npx playwright install chromium会下载一个浏览器。 - 以启动浏览器的用户身份、在相同环境中运行它。下载内容会保存到该用户自己的 Playwright 缓存中。
- 更新 Playwright 或 Playwright MCP 后,重新运行安装。新版本需要新的浏览器版本。
- Playwright MCP 还提供
browser_install工具,智能体可以替你运行安装。
使用 superbot
这是本地配置错误,superbot 不会修复此错误。如果目标是在浏览器中打开页面,superbot 是一个替代方案。
superbot 通过它唯一的工具在浏览器会话中打开页面,你可以在其中点击、输入和填写表单。如果你的账号已关联电脑,会话就在你自己电脑上的浏览器中运行,否则在云端浏览器中运行。
它不使用 Playwright 下载的浏览器,因此不会出现此错误。
提问
在浏览器会话中打开 https://httpbin.org/html,给我读出页面的第一句话,然后关闭会话。
回复
Read from the page on the cloud browser; the session is closed.
The first sentence: "Availing himself of the mild, summer-cool weather that now reigned in these latitudes, …"此功能需要账号。
没有账号的智能体会通过 /auth.md 帮你登录。
你把邮件中的一个验证码读给智能体听。
相关内容
来源:microsoft/playwright-mcp 问题 1091 和 Playwright 注册表源码。查阅于 2026-10-18。