2

I got a below error, If I start execute the program.

Exception in thread "main" org.openqa.selenium.remote.UnreachableBrowserException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure. Build info: version: '2.53.0', revision: '35ae25b', time: '2016-03-15 16:57:40'

Cœur
  • 37,241
  • 25
  • 195
  • 267
  • Which version of Firefox are you using? – RemcoW Jun 15 '16 at 07:58
  • I'm using Version 47.0 – Ram4Automation Jun 15 '16 at 08:01
  • 1
    Start from version 47.0 you will need to use the MarionetteDriver if you plan on using Firefox. Look at the answer to this question for a detailed explanation. http://stackoverflow.com/questions/37761668/cant-open-browser-with-selenium-after-firefox-update/37765661#37765661 – RemcoW Jun 15 '16 at 08:03
  • now I got the below error. – Ram4Automation Jun 15 '16 at 08:08
  • Exception in thread "main" java.lang.IllegalStateException: The path to the driver executable must be set by the webdriver.gecko.driver system property; for more information, see https://github.com/jgraham/wires. The latest version can be downloaded from https://github.com/jgraham/wires – Ram4Automation Jun 15 '16 at 08:09
  • As the answer I linked stated you need to: "Download the driver, rename it to wires.exe and make sure the executable is present in your system path". The driver can be downloaded from https://github.com/mozilla/geckodriver/releases – RemcoW Jun 15 '16 at 08:12
  • Still the same issue remains, After downloaded and refer – Ram4Automation Jun 15 '16 at 08:17
  • For chrome driver also getting the below error. – Ram4Automation Jun 15 '16 at 08:23
  • Exception in thread "main" java.lang.IllegalStateException: The path to the driver executable must be set by the webdriver.chrome.driver system property; for more information, see https://github.com/SeleniumHQ/selenium/wiki/ChromeDriver. The latest version can be downloaded from http://chromedriver.storage.googleapis.com/index.html – Ram4Automation Jun 15 '16 at 08:23
  • For chromdriver you'll need a different driver. The error says it cannot find the executable in your path. How did you set it? Are you using windows? – RemcoW Jun 15 '16 at 08:24
  • I'm using windows 64 bits and already downloaded chromedriver32 and refer – Ram4Automation Jun 15 '16 at 08:26
  • What do you mean by "and refer"? You didn't answer my question on how you added the driver to the PATH variable. – RemcoW Jun 15 '16 at 08:57
  • Refer means I added into the "Referenced libraries" – Ram4Automation Jun 15 '16 at 09:17
  • That won't do. You need to add the path to wires.exe to your PATH system variable. See https://java.com/en/download/help/path.xml on how to do this – RemcoW Jun 15 '16 at 09:22

1 Answers1

0

The problem is stemming from the novel engine of Firefox after version 47. I fixed this problem by uninstalling latest Firefox and installing the older one (version: 45.x.x.).

You can download it from firefox older releases directory.

Suat Atan PhD
  • 1,152
  • 13
  • 27