Selenium and Firefox Problems

I just did a software update on my Ubuntu 14.04 development machine. That update included updating Firefox to 47.0. This caused my tests to fail with the message:

Traceback (most recent call last):
 File "/home/chuck/sqdb/django_fuller_calendar/django_fuller_calendar/tests/", line 23, in setUp
 self.browser = webdriver.Firefox()
 File "/home/chuck/.virtualenvs/dfc/local/lib/python2.7/site-packages/selenium/webdriver/firefox/", line 81, in __init__
 self.binary, timeout)
 File "/home/chuck/.virtualenvs/dfc/local/lib/python2.7/site-packages/selenium/webdriver/firefox/", line 51, in __init__
 self.binary.launch_browser(self.profile, timeout=timeout)
 File "/home/chuck/.virtualenvs/dfc/local/lib/python2.7/site-packages/selenium/webdriver/firefox/", line 68, in launch_browser
 File "/home/chuck/.virtualenvs/dfc/local/lib/python2.7/site-packages/selenium/webdriver/firefox/", line 98, in _wait_until_connectable
 raise WebDriverException("The browser appears to have exited "
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.

I am using selenium 2.53.5.

After extensive googling, the most useful page was:

On that page, this comment was most useful:

I strongly suggest people move over to Marionette

Following the instructions on that page, I was able to get the python demo code on the bottom of that page to work. I needed to change the name of the file to “wires” as mentioned in the text. Putting the file in /usr/bin made it available everywhere I need it.

I should mention that my selenium tests are now failing because I am using the command:


Earlier today, I tried switching to the Chromium browser. It failed on the same command.

Rolling Back Firefox

The solution above did not work for me because I could not find a work-around for the “move_to” commands. So I rolled back Firefox as a temporary solution. I used the instructions found here:  I was able to find the version I wanted here:



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s