-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Browser: 'firefox' was not found on your system or is not supported by Cypress. #15258
Comments
Please see our troubleshooting guide on Launching Browsers Could you run Cypress in debug mode specifically logging |
Log -> DEBUG=cypress:launcher npx cypress run --browser firefox
|
Log for -> npx cypress info Displaying Cypress info... Detected 1 browser installed:
Note: to run these browsers, pass : to the '--browser' field Examples:
Cypress Version: 6.5.0 |
It is not detecting firefox, where firefox is installed in my system firefox --version |
@niru005 Do you know the location where Firefox is downloaded? Did you try to pass the path to the downloaded location as shown in https://on.cypress.io/troubleshooting#Launching-browsers? |
I have tried to pass the path of firefox as well but it is not working. npx cypress run --browser /usr/bin/firefox The output from the command we ran was: Unable to find browser with path /usr/bin/firefox |
Have you tried an absolute path ? This npx cypress run --browser "C:/dev/softs/Mozilla Firefox/firefox.exe" worked for me. |
I had the same problem with an Ubuntu 22.04-based docker image. Ubuntu 22.04 will install a snap version of firefox by default, which will not run in docker. I had to install the "normal" non-snap version of firefox: https://www.omgubuntu.co.uk/2022/04/how-to-install-firefox-deb-apt-ubuntu-22-04 |
This issue has not had any activity in 180 days. Cypress evolves quickly and the reported behavior should be tested on the latest version of Cypress to verify the behavior is still occurring. It will be closed in 14 days if no updates are provided. |
This issue has been closed due to inactivity. |
I get the same issue, for my case:
Only Firefox is missing |
I am not using docker and have the same problem. When I run (I am on ubuntu 22.04) |
We also ran into the same issue, and used the same workaround: use the
|
We ended up building an image from cypress/base and adding Firefox manually, here's a Dockerfile for that:
You could also use a cypress/browser image and simply force replace Firefox, like in this Dockerfile:
|
I am trying to run the test on firefox in headless mode using below command, But cypress in not able to find firefox browser.
npx cypress run --browser firefox
Current behavior
Can't run because you've entered an invalid browser name.
Browser: 'firefox' was not found on your system or is not supported by Cypress.
Cypress supports the following browsers:
You can also use a custom browser: https://on.cypress.io/customize-browsers
Available browsers found on your system are:
Desired behavior
Cypress should able to detect firefox browser & test should run on firefox.
Cypress version - npx cypress verify
✔ Verified Cypress! /var/lib/jenkins/.cache/Cypress/6.5.0/Cypress
Firefox version - firefox --version
Mozilla Firefox 84.0.2
The text was updated successfully, but these errors were encountered: