cypress: browser option : chrome not found
I’m trying to run my testcases through cypress though the following command :
$- npx cypress run --browser chrome --headed
and it gives the following output for the same:
$-Warning: We failed to remove old browser profiles from previous runs.
This error will not alter the exit code.
[object Object]
Can't run because you've entered an invalid browser.
Browser: 'chrome' was not found on your system.
Available browsers found are: electron
and also by UI :
$- npx cypress open
its not showing chrome as option. any idea how i can solve this issue ? is there any path info i need to add in my code? as electron is working fine.
windows: 10 cypress : 3.1.2 chrome: 70.0
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 16 (4 by maintainers)
Confirmed on arch linux: 4.19.2-arch1-1-ARCH running google-chrome-stable. Creating a symlink to /usr/bin/chrome did not help. Clearing app data did not help.
and it gives the following output for the same:
NOTES: win 7 chrome 71 in my system
@jennifer-shehane i just installed cypress newly on my system and chrome was not showing. then i tried re-install chrome but still facing same issue. then i also tried to re-install cypress but still no chrome option was found.
Could you explain what you did before running into this issue? Has Chrome worked for you previously? Did you recently update?
I believe that clearing the AppData may solve the problem. To do this:
File
->View App Data