Can't open browser with Selenium after Firefox update
browser, firefox, selenium, webdriver
Solution
FIXED: Solution at this time is to downgrade Firefox! run this command to get a list of available Firefox versions.
apt-cache show firefox | grep Version
My Result:
Version: 47.0+build3-0ubuntu0.16.04.1
Version: 45.0.2+build1-0ubuntu1
Install:
sudo apt-get install firefox=45.0.2+build1-0ubuntu1
To keep this version and disallow updates:
sudo apt-mark hold firefox
If you want to unhold firefox version and allow updates:
sudo apt-mark unhold firefox
sudo apt-get upgrade
Problem
I use Selenium WebDriver on Ubuntu Desktop 16.04, and I can't open browser. I get the following error after Firefox update (before this, it all worked): ``` Traceback (most recent call last): File "test.py", line 6, in <module> driver = webdriver.Firefox() File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/firefox/webdriver.py", line 81, in __init__ self.binary, timeout) File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/firefox/extension_connection.py", line 51, in __init__ self.binary.launch_browser(self.profile, timeout=timeout) File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/firefox/firefox_binary.py", line 68, in launch_browser self._wait_until_connectable(timeout=timeout) File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/firefox/firefox_binary.py", line 98, in _wait_until_connectable raise WebDriverException("The browser appears to have exited " selenium.common.exceptions.WebDriverException: Message: The browser appears to have exited before we could connect. If you specified a log_file in the FirefoxBinary constructor, check it for details. ```