MarketSquare / webdrivermanager

Python module to facilitate downloading and deploying WebDriver binaries for Chrome, Firefox, Opera & Edge
https://pypi.org/project/webdrivermanager/
MIT License
100 stars 38 forks source link

Firefox not found in Windows registry #62

Closed JoriDubrovin closed 3 years ago

JoriDubrovin commented 3 years ago

I just installed Firefox on Windows, and webdrivermanager cannot find the browser. When GeckoDriverManager detects the browser version on Windows, it looks for a registry key under HKEY_CURRENT_USER, but I don't have the key. The key does exist under HKEY_LOCAL_MACHINE though:

C:\>reg query "HKEY_CURRENT_USER\Software\Mozilla\Mozilla Firefox" /v CurrentVersion
ERROR: The system was unable to find the specified registry key or value.

C:\>reg query "HKEY_LOCAL_MACHINE\Software\Mozilla\Mozilla Firefox" /v CurrentVersion

HKEY_LOCAL_MACHINE\Software\Mozilla\Mozilla Firefox
    CurrentVersion    REG_SZ    86.0.1 (x64 en-US)

Could this be just a typo in gecko.py?

rasjani commented 3 years ago

Chrome already had similar approach to look for multiple reg keys, gecko now using same pattern.