Firefox Not Connected Exception in Selenium

Scripts that worked earlier may be till yesterday are NOW not working because of Firefox browser upgraded to new version.

Most of them have faced the similar problem when the browser has updated to version . This is the first issue user notices when there is an update in the firefox browser and may not support selenium with older version of jars.

First we need to check if the selenium has come up with new version. Click here to download the latest version of selenium

If you already have the latest version of selenium, then you have to degrade your browser until there is an update from selenium.

Problem :
Webdriver will just initiate the browser, prompting for a search or address and that ends there with an exception:
org.openqa.selenium.firefox.NotConnectedException:

org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:
*** LOG addons.manager: Application has been upgraded
*** LOG addons.xpi: startup
*** LOG addons.xpi: Skipping unavailable install location app-system-local
*** LOG addons.xpi: Skipping unavailable install location app-system-share
*** LOG addons.xpi: Ignoring file entry whose name is not a valid add-on ID:
.
.
.
.
*** LOG addons.xpi: startup
*** LOG addons.xpi: Skipping unavailable install location app-system-local
*** LOG addons.xpi: Skipping unavailable install location app-system-share
*** LOG addons.xpi: Ignoring file entry whose name is not a valid add-on ID: 
Solutions to the above problem:

1. Make sure, you have selenium server latest version and added to the library.
2. If there are any source files for selenium attached to the project should also be the updated jar files.
Selenium Change Log Document

Click here to view How to Run Webdriver in Firefox

For all those who are facing the issues, Now Selenium WebDriver 2.53.1 has been released on 30th June 2016. FirefoxDriver is working again with Firefox 47.0.1 as browser.

You can downloaded selenium-server-standalone-2.53.1.jar from download selenium 2.53.1

Please check below stack overflow link for more details:
http://stackoverflow.com/questions/37693106/selenium-2-53-not-working-on...

IMPORTANT UPDATE:

As selenium 3 is released, you may also look at this article to 'launch firefox using geckodriver' with selenium 3.

The most common issue people are facing with latest versions of Firefox is org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms.

Users who are facing the above problem, Please start using Marionette (geckodriver) or else Downgrade your Firefox version to FF46.

For reference, you can look at comments on this particular Selenium issue

Selenium Tutorials: 

Comments

Thanks for providing good article on "Firefox Not Connected Exception in Selenium".

I am stuck with the "org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1..." issue with selenium 2.47.1 and Firefox 40. Please help

I have same problem and i have downloaded the latest version of the server. It got resolved.
Thanks and for nice explanation.

I am having Firefox 48.0b1 version and Selenium's latest version 2.53. I am getting the error as
Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms.
I am unable to open a browser with mentioned url.

Initially it was working fine with firefox version 40.0 and with Selenium 2.53, but firefox got auto upgraded 48.0b1. I am getting the same error even after downgrading to ff version of 40.0

Please help.

First disable the Firefox updates for old Firefox version.
Selenium's latest version 2.53 works with Firefox 39.

I am having Firefox 47.0 version and Selenium's latest version 2.53.0. I am getting the error as
Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms.

Selenium WebDriver 2.53.1 has been released on 30th June 2016. FirefoxDriver is working again with Firefox 47.0.1 as browser.

i hope can any one solve my problem i have firefox 47 version and selenium server 2.52 configuration in my system...but when i was running something program it throw exception like that unreachable browserexception....i could not understand why it occured continueously......pleeeeese any one help me to solve this exception

Everyone who is facing this issue, please refer http://stackoverflow.com/a/37728659/6469532

Summary: firefox 47.0.1 and selenium 2.53.1 will resolve the issue as of now.

Hi,
I ma face the same error, i am using firefox version - 49.0b2 & i have tried to run the script with 3 versions of selenium(2.53.0, 2.53.1, 3.0.0) but still face the same problem can you suggest what should i do.

Add new comment

CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.