Using Docker to run Google Chrome is also a great way to use the browser without installing it onto your system. Running Chrome in a Docker container is also good for running tests for web applications.
Why is Chrome not opening on my computer?
Usually, the error, browser: ‘Chrome’ was not found on your system occurs because the chrome.exe file is not installed in the default folder. If it’s located somewhere different, then Cypress will have difficulty locating it and thus will produce the error. For those wondering if Cypress works with Chrome, the answer is Yes. Chrome, along with a few other browsers developed on the Chromium engine, are all supported by Cypress. But remember, Cypress still doesn’t support all browsers, and you should verify that beforehand in order to avoid running into errors later.
Quick tip:
Choosing the best browser can make all the difference when it comes to workflow, customizations and user data. We recommended Opera because it offers a feature-packed interface and is one of the only browsers with a built-in VPN. Also, this browser has been running on Google’s open source Chromium. This means you can install any web extension from Google’s massive library for a fully customized experience.
How do I get Cypress to work on Chrome?
1. Create a symlink
This is a possible solution if you have Google Chrome installed somewhere other than the default folder, which is where Cypress looks for the browser. Creating a symbolic link (symlink) to the default folder will help Cypress locate Chrome. SPONSORED Be sure to run Command Prompt as an administrator at that the C:\Program Files\Google\Chrome file path exists before trying this step.
2. Clear Cypress cache
Clearing the cache of Cypress will clear out any installed versions of the program on your PC. Like with any application, clearing the cache is a good way to get rid of any corrupt files and clutter. Be sure to run the command: npm install cypress –save-dev to install Cypress again.
3. Run Chrome as an administrator
4. Reinstall Google Chrome
If nothing worked, it’s likely an issue with Google Chrome that only a reinstall could fix. And that, too, shouldn’t take more than 10-15 minutes. Once done, the Browser: ‘Chrome’ was not found on your system message should not appear in Cypress any more.
How can you tell if your browser is not working?
Users can tell if their browser is not working if they get error messages like browser: ‘Chrome’ was not found on your system or is not supported by Cypress, or the message: Google Chrome not found on this system. These error messages appear in web application testing programs like Cypress or in Docker. Hopefully, one of the above solutions helped fix the error browser: ‘Chrome’ was not found on your system. If you’re having difficulties with Cypress failing to connect to Chrome, we also offer a guide for that. Let us know in the comments which solution worked for you or if you have a suggestion for a different solution that is not listed.
SPONSORED
Name *
Email *
Commenting as . Not you?
Save information for future comments
Comment
Δ