- Developers have reported receiving the error message browser: 'chrome' was not found on your system in Cypress or Docker.
- The error may occur because Cypress cannot locate the chrome.exe path if it's not in the default folder.
- Users can tell if their browser is not working if they are receiving errors in the command line in web application testing programs.
If you’re a web developer, then you’re probably familiar with Cypress, a tool for testing modern applications for browsers. However, users have reported receiving the error message browser: ‘Chrome’ was not found on your system or is not supported by Cypress. Read on to find the solution to this issue.
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 Google 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.
Follow the steps below to find a solution to this problem quickly. If you’re having difficulties with Cypress failing to connect to Chrome, we also offer a guide for that.
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.
Choose to navigate safely using this performing browser.
What can I do if I get the browser: ‘Chrome’ was not found on your system message?
1. Create a symlink
- Click on Start and search for Command Prompt and right-click it then select Run as administrator.
- Create a directory junction to Chrome’s default folder by typing the following command:
C:\mklink /J "C:\Program Files\Google\Chrome\Application" "C:\Program Files \Google Chrome (Local)"
- Hit Enter to complete the command.
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.
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
- Locate the chrome.exe path and right-click on it then select Properties.
- Under the Compatibility tab, check the box next to Run this program as an administrator.
- Click Apply.
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. 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.