Selenium WebDriver – Fix for Selenium 2.53 or 2.48 Not Working in Firefox 48.0

seleniumselenium-ideselenium-webdriverwebdriver

I am getting an error in Firefox 48.0 in new the update from firefox 47

Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms.
Firefox console output: 066 addons.xpi DEBUG Updating database with
changes to installed add-ons

My system and browser configuration are:

Firefox 48

Selenium 2.48 also try 2.53

Window 8 64bit

I also tried the marionette driver but did not receive proper output with that.

Any ideas on how to fix this besides downgrading firefox?

Best Answer

Older versions of Selenium (like 2.5.x) do not work and won't work with Firefox 48+. The reason is that Firefox 48 changed a lot of stuff, including the fact that extensions must be signed by Mozilla to work with Firefox. To fix the Selenium issue, Mozilla took ownership of FirefoxDriver() and they a released a Marionette version for this, including a Gecko driver.

This is what you need to use to be able to execute your tests on Firefox 48+.

Related Question