Thursday 7 May 2015

Firefox Not Connected Exception in Selenium web driver API showing in eclipse console



Automation tests scripts that are worked previously may be till yesterday are NOW no more working because of Firefox browser upgraded to new version.
Most of all have faced the same problem if the browser has updated to version. This is the first issue automation tester notices when there is an update in the Firefox browser and may not support selenium web driver API with older version of jars.
First we need to figure out if the selenium web driver API has come up with new version. Click here to download the latest version of selenium  to check
If you have the latest version of selenium web driver API, the you need to degrade your browser until there is any update from selenium web driver API.
Problem:
Web driver will just initiate the Firefox browser, prompting for a search or address and that ends there with an exception in eclipse console:
Error in console below-

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:
Solutions to this crucially problem:
1. Make sure, you need to check selenium web driver API latest version and added to the library.
2. If there are any source files for selenium web driver API attached to the project should also be updated jar files.

No comments:

Post a Comment