赛普拉斯5.0-无法找到已安装的浏览器 [英] Cypress 5.0 - Unable to find installed browsers
问题描述
我已经安装了Cypress 5.0,并具有所有浏览器-Chrome,Edge和FF.当我跑步
I have Cypress 5.0 installed and have all the browsers - Chrome, Edge and FF. When I run
> npx cypress open
无法在右上角看到所有浏览器.仅电子显示
Not able to see all the browsers on the top right corner. Only Electron is showing
我尝试过
> 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显示错误-我们无法在您提供的路径中识别出已知的浏览器
Cypress shows the error - We could not identify a known browser at the path you provided
我的另一台机器上,我能够从get go中看到所有浏览器.
One of my other machine, I am able to see all the browsers from get go.
任何帮助将不胜感激
推荐答案
我在Cypress 7.1.0中遇到了同样的问题.赛普拉斯仅显示Edge.我在此处中删除了应用数据.重新安装Google Chrome后,赛普拉斯会同时显示Chrome和Edge.
I had same issue with Cypress 7.1.0. Cypress shows only Edge. I removed the app data described in here. After reinstalling the Google Chrome, Cypress show both of Chrome and Edge.
这篇关于赛普拉斯5.0-无法找到已安装的浏览器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!