Sundeep Gupta
Sundeep Gupta

Reputation: 1966

Firefox Webdriver fails with UnreachableBrowserException and blank Screen

I am running webdriver 2.53.1 against firefox 45.9.0ESR on Redhat Linux 6.6. FirefoxDriver object gets created successfully and firefox launches with blank page (about:blank) as expected. But when I do the 'get' to open the url, it fails with UnreachableBrowserException with underlying cause as org.apache.http.NoHttpResponseException: localhost:7055 failed to respond.

Preferences set for FirefoxProfile

app.update.auto = false
app.update.enabled = false
app.update.silent = false
media.gmp-provider.enabled = false
webdriver.log.file = webdriver_debug.log
webdriver.firefox.logfile = firefox_browser.log

My observations

  1. Browser is running and is not killed
  2. Browser has webdriver addon added.
  3. By 'netstat' I see webdriver listening on port 7055
  4. Though I configured to dump firefox and webdriver logs, nothing gets dumped.

What I tried so far

  1. Handling the exception and retrying does not help
  2. The firefox is a tar ball extract. I tried removing the folder and extracting again, but that did not help either.
  3. Used navigate().to(url) instead of get(url) but result is same.

NOTE: The JRE 7 is used for running

Upgrading Selenium We cannot upgrade the selenium or firefox as there are many other dependent layers to be upgraded for selenium/firefox to upgrade.

Upvotes: 0

Views: 59

Answers (1)

Shubham Jain
Shubham Jain

Reputation: 17553

You need to update your jars files of selenium both server and client.

Download the latest jars from below link :-

http://www.seleniumhq.org/download/

You also need to update your gecko driver from below URL :-

https://github.com/mozilla/geckodriver/releases

Additionality update your firefox

Help -> About

Upvotes: 0

Related Questions