如何解决赛普拉斯5.0-无法找到已安装的浏览器
我安装了Cypress 5.0,并具有所有浏览器-Chrome,Edge和FF。当我跑步
> npx cypress open
无法在右上角看到所有浏览器。仅电子显示
我尝试过
> npx cypress open --browser chrome
我收到以下错误
Can't run because you've entered an invalid browser name.
Browser: 'chrome' was not found on your system or is not supported by Cypress.
Cypress supports the following browsers:
- chrome
- chromium
- edge
- electron
- firefox (Cypress support in beta)
You can also use a custom browser: https://on.cypress.io/customize-browsers
Available browsers found on your system are:
- electron
我也尝试过
> npx cypress open --browser C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
Cypress显示错误-我们无法在您提供的路径中识别出已知的浏览器
我的另一台机器上,我可以从get go中查看所有浏览器。
任何帮助将不胜感激
解决方法
我与詹金斯(Jenkins)遇到了同样的问题,只是通过在管道脚本(在C:\\Windows\\System32\\wbem
部分中)中将PATH
添加到我的withEnv
中来解决了这个问题。
我在 Cypress 7.1.0 上遇到了同样的问题。 Cypress 仅显示 Edge。 我删除了 here 中描述的应用数据。 重新安装 Google Chrome 后,Cypress 显示 Chrome 和 Edge。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。