-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Starting with Firefox 130.0.1 the default installation of Firefox cannot be found by geckodriver #2199
Comments
When you update Firefox nothing will change for geckodriver. Did you check where Firefox is installed? Has something changed? Which OS are you running? Please specify all the details. |
We noticed this as well with upgrade from Firefox 130.0.0.2283 to Firefox 130.0.1.967. It seems something is broken related to detecting the default binary installation location (or if the browser provides that information to the driver somehow?) as the installation location did not change from one version to the other (still in C:\Program Files\Mozilla Firefox\firefox.exe in both versions) As a workaround if you pass the BinaryLocation to the driver it will launch without the error. |
From a first look there is nothing contained in the 130.0.1 release which could have changed that. Are you using the official release of Firefox from mozilla.org? I wonder because of the version number you posted. We use Can you please try again when having trace-level logs for geckodriver enabled? I would be interested to know what's causing that and trace logs might give an indication. Thank you! |
I also have this issue as of today with version 130.0.1. I have updated geckodriver to the latest (0.35.0), but it did not help. |
Which kind of Windows flavor do you all have? Is it 32bit or 64bit? Nevertheless please provide a trace level log as requested above while we are trying to reproduce. Thanks. |
Hello I have the same probleme on a Windows 64bit. I Use geckodriver on a python script and it tell me this : Traceback (most recent call last): If you have an idea of what I can do I would be grateful. |
I'm using Selenium WebDriver 3.141.0 and Selenium.WebDriver.GeckoDriver.Win64 as nuget packages in a long established .Net Framework 4.71 project on Windows 10 22H2 (OS build 19045.4984) which has been working well for a good few years, but has started giving this same error once Firefox updated itself to version 130.0.1 (64 bit). When I set the Gecko log level to Trace I got the following output, which doesn't give much additional information:
Interestingly, I spotted that my Firefox is installed to "C:\Program Files (x86)\Mozilla Firefox\firefox.exe" despite being a 64 bit version. I suspect this may be because my development machine initially had the 32 bit version of Firefox but, if I remember correctly, Firefox switched over to the 64 bit version automatically some years ago. When I specified this (x86) location for the Firefox browser executable using the FirefoxOptions.BrowserExecutableLocation property Selenium and Gecko both ran successfully again. Could it be that some change in the latest version of Firefox has prevented Gecko from looking in the x86 folder structure even though a 64 bit executable is expected? I hope this provides some helpful information to identify what's going on here, but at least I've found a solution for my C# project. |
I'm facing the same issue while running an R script.
What option needs to be set in makeFirefoxProfile to find the location to the executable? |
Can anyone who is affected by this please try to use geckodriver directly from a terminal? Therefore please follow these steps:
Does that work or is geckodriver not able to find Firefox? If it cannot find Firefox please provide the following details:
Thanks. |
Hello, |
Oh, this is a very helpful hint! Thanks @rey-dominique. Even through the keys aren't expected in HKCU I wonder if we should check that path as fallback. But lets wait what the outcome of the bug fix is. |
Yes, I had exactly the same problem as you. |
FYI I filed https://bugzilla.mozilla.org/show_bug.cgi?id=1921933 so that we can add support that geckodriver will also check HKCU in the future. Given that this issue is for Firefox and affects not that many people we don't consider this addition as a fix. As such I'm closing this issue now. |
when i update the firefox version, run the code,the geckodriver.exe no work,pls help m
The text was updated successfully, but these errors were encountered: