selenium-google-code-issue-archive
selenium-google-code-issue-archive copied to clipboard
C# webdriver bindings - GetExecutablePathUsingRegistry() fails to find path to FF31.1 ESR
Originally reported on Google Code with ID 7914
Using:
-------
Webdriver - 2.43
Webdriver C# bindings - 2.43.1
OS - Windows 7 x64
Browser - Firefox
Browser Version: 31.1 ESR
When attempting to launch Firefox locally (i.e. not using remote webdriver), the method
OpenQA.Selenium.Firefox.Internal.Executable.GetExecutablePathUsingRegistry() appears
to look for the "CurrentVersion" in [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Mozilla\Mozilla
Firefox]
The StringValue is actually found in
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Mozilla\Mozilla Firefox ESR]
The error raised is:
OpenQA.Selenium.WebDriverException was unhandled by user code
HResult=-2146233088
Message=Unable to determine the current version of FireFox using the registry, please
make sure you have installed FireFox correctly
Source=WebDriver
StackTrace:
at OpenQA.Selenium.Firefox.Internal.Executable.GetExecutablePathUsingRegistry(RegistryKey
mozillaKey)
at OpenQA.Selenium.Firefox.Internal.Executable.LocateFirefoxBinaryFromPlatform()
at OpenQA.Selenium.Firefox.Internal.Executable..ctor(String userSpecifiedBinaryPath)
at OpenQA.Selenium.Firefox.FirefoxBinary..ctor(String pathToFirefoxBinary)
at OpenQA.Selenium.Firefox.FirefoxBinary..ctor()
at OpenQA.Selenium.Firefox.FirefoxDriver..ctor(FirefoxProfile profile)
at {myproject}.LaunchFirefox(String url) in c:\{myproject}\BrowserBase.cs:line
88
Workaround:
----------
Add the StringValue to the location the method is looking in. The following lines
can be saved as a .reg file and imported.
-------------------------------------
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Mozilla\Mozilla Firefox]
"CurrentVersion"="31.1.0 ESR (x86 en-US)"
-------------------------------------
Reported by eklapatiuk
on 2014-09-16 14:23:49
Reported by barancev
on 2014-09-16 17:26:18
- Labels added: Lang-CSharp, Browser-Firefox
Corporate restricts me to this version of FF ESR (31.2.0). I have Selenium 2.44.0.
After utilizing the workaround, I get
Message: Initialization method
Failed to start up socket within 45000 ms
Attempted to connect to the following addresses: 127.0.0.1:7055
How do I get the Selenium server up and running?
Reported by machtyn
on 2015-02-09 19:23:33
Reported by luke.semerau
on 2015-09-17 17:47:05
- Labels added: Restrict-AddIssueComment-Commit