UnreachableBrowserException Caused by: java.lang.NullPointerException when “webdriver.firefox.marionette” is used

元气小坏坏 提交于 2019-11-27 02:26:58

Here is the Answer to your Question:

The error UnreachableBrowserException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure says it all.

As per guru99.com it is mentioned to use webdriver.firefox.marionette within System.setProperty. In Selenium 3.x we would be using webdriver.gecko.driver instead.

So consider changing the line of code:

System.setProperty("webdriver.firefox.marionette","C:\\geckodriver.exe");

to:

System.setProperty("webdriver.gecko.driver","C:\\your_directory\\geckodriver.exe");

Let me know if this Answers your Question.

The following error message, clears says selenium and geckdriver version you are using does not support current Firefox as it has been upgraded.

1501246654252   addons.manager  DEBUG   Application has been upgraded

There are two ways to solve this

  • upgrade webdriver and geckdriver
  • Downgrade Firefox
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!