Java Selenium failing to open web page on firefox -
i'm using selenium 3.4.0, java 1.8 , firefox 54.0.1(64 bit). i'm getting null pointer exception when try open link firefox. when use selenium/python works fine, i'm trying run code guru 99 page (https://www.guru99.com/first-webdriver-script.html).i've searched see if else has had problem, can't find solutions. following output:
1501246654252 addons.manager debug application has been upgraded 1501246654291 addons.manager debug loaded provider scope resource://gre/modules/addons/xpiprovider.jsm: ["xpiprovider"] 1501246654293 addons.manager debug loaded provider scope resource://gre/modules/lightweightthememanager.jsm: ["lightweightthememanager"] 1501246654297 addons.manager debug loaded provider scope resource://gre/modules/addons/gmpprovider.jsm 1501246654299 addons.manager debug loaded provider scope resource://gre/modules/addons/pluginprovider.jsm 1501246654299 addons.manager debug starting provider: xpiprovider 1501246654300 addons.xpi debug startup 1501246654301 addons.xpi info mapping fxdriver@googlecode.com c:\users\chrisg~1\appdata\local\temp\anonymous8191426632770324153webdriver-profile\extensions\fxdriver@googlecode.com 1501246654301 addons.xpi debug ignoring file entry name not valid add-on id: c:\users\chrisg~1\appdata\local\temp\anonymous8191426632770324153webdriver-profile\extensions\webdriver-staging 1501246654301 addons.xpi info removing system add-on upgrades. 1501246654301 addons.xpi info systemaddoninstalllocation directory missing 1501246654302 addons.xpi info mapping aushelper@mozilla.org c:\program files\mozilla firefox\browser\features\aushelper@mozilla.org.xpi 1501246654303 addons.xpi info mapping e10srollout@mozilla.org c:\program files\mozilla firefox\browser\features\e10srollout@mozilla.org.xpi 1501246654303 addons.xpi info mapping firefox@getpocket.com c:\program files\mozilla firefox\browser\features\firefox@getpocket.com.xpi 1501246654303 addons.xpi info mapping screenshots@mozilla.org c:\program files\mozilla firefox\browser\features\screenshots@mozilla.org.xpi 1501246654304 addons.xpi info mapping webcompat@mozilla.org c:\program files\mozilla firefox\browser\features\webcompat@mozilla.org.xpi 1501246654305 addons.xpi info mapping {972ce4c6-7e08-4474-a285-3208198ce6fd} c:\program files\mozilla firefox\browser\extensions\{972ce4c6-7e08-4474-a285-3208198ce6fd}.xpi 1501246654305 addons.xpi debug skipping unavailable install location app-system-share 1501246654305 addons.xpi debug skipping unavailable install location app-system-local 1501246654306 addons.xpi debug checkforchanges 1501246654306 addons.xpi info systemaddoninstalllocation directory missing 1501246654307 addons.xpi debug loaded add-on state prefs: {} 1501246654308 addons.xpi debug new add-on fxdriver@googlecode.com in app-profile 1501246654308 addons.xpi debug getmodtime: recursive scan of fxdriver@googlecode.com 1501246654313 addons.xpi debug new add-on aushelper@mozilla.org in app-system-defaults 1501246654313 addons.xpi debug getmodtime: recursive scan of aushelper@mozilla.org 1501246654314 addons.xpi debug new add-on e10srollout@mozilla.org in app-system-defaults 1501246654315 addons.xpi debug getmodtime: recursive scan of e10srollout@mozilla.org 1501246654315 addons.xpi debug new add-on firefox@getpocket.com in app-system-defaults 1501246654315 addons.xpi debug getmodtime: recursive scan of firefox@getpocket.com 1501246654315 addons.xpi debug new add-on screenshots@mozilla.org in app-system-defaults 1501246654316 addons.xpi debug getmodtime: recursive scan of screenshots@mozilla.org 1501246654316 addons.xpi debug new add-on webcompat@mozilla.org in app-system-defaults 1501246654316 addons.xpi debug getmodtime: recursive scan of webcompat@mozilla.org 1501246654317 addons.xpi debug new add-on {972ce4c6-7e08-4474-a285-3208198ce6fd} in app-global 1501246654317 addons.xpi debug getmodtime: recursive scan of {972ce4c6-7e08-4474-a285-3208198ce6fd} 1501246654317 addons.xpi debug getinstallstate changed: true, state: {"app-profile":{"fxdriver@googlecode.com":{"d":"c:\\users\\chrisg~1\\appdata\\local\\temp\\anonymous8191426632770324153webdriver-profile\\extensions\\fxdriver@googlecode.com","st":1501246654037,"mt":1501246653985}},"app-system-defaults":{"aushelper@mozilla.org":{"d":"c:\\program files\\mozilla firefox\\browser\\features\\aushelper@mozilla.org.xpi","st":1498667065000},"e10srollout@mozilla.org":{"d":"c:\\program files\\mozilla firefox\\browser\\features\\e10srollout@mozilla.org.xpi","st":1498667065000},"firefox@getpocket.com":{"d":"c:\\program files\\mozilla firefox\\browser\\features\\firefox@getpocket.com.xpi","st":1498667066000},"screenshots@mozilla.org":{"d":"c:\\program files\\mozilla firefox\\browser\\features\\screenshots@mozilla.org.xpi","st":1498667067000},"webcompat@mozilla.org":{"d":"c:\\program files\\mozilla firefox\\browser\\features\\webcompat@mozilla.org.xpi","st":1498667066000}},"app-global":{"{972ce4c6-7e08-4474-a285-3208198ce6fd}":{"d":"c:\\program files\\mozilla firefox\\browser\\extensions\\{972ce4c6-7e08-4474-a285-3208198ce6fd}.xpi","st":1498667065000}}} 1501246654324 addons.xpi-utils debug opening xpi database c:\users\chrisg~1\appdata\local\temp\anonymous8191426632770324153webdriver-profile\extensions.json 1501246654326 addons.xpi-utils debug new add-on fxdriver@googlecode.com installed in app-profile *** blocklist::_loadblocklistfromfile: blocklist disabled 1501246654340 addons.xpi warn add-on fxdriver@googlecode.com not correctly signed. 1501246654340 addons.xpi warn add-on fxdriver@googlecode.com not correctly signed. 1501246654343 deferredsave.extensions.json debug save changes 1501246654343 addons.xpi-utils debug new add-on aushelper@mozilla.org installed in app-system-defaults 1501246654346 deferredsave.extensions.json debug starting timer 1501246654349 deferredsave.extensions.json debug save changes 1501246654349 addons.xpi-utils debug new add-on e10srollout@mozilla.org installed in app-system-defaults 1501246654354 deferredsave.extensions.json debug save changes 1501246654355 addons.xpi-utils debug new add-on firefox@getpocket.com installed in app-system-defaults 1501246654359 deferredsave.extensions.json debug save changes 1501246654359 addons.xpi-utils debug new add-on screenshots@mozilla.org installed in app-system-defaults 1501246654365 deferredsave.extensions.json debug save changes 1501246654365 addons.xpi-utils debug new add-on webcompat@mozilla.org installed in app-system-defaults 1501246654369 deferredsave.extensions.json debug save changes 1501246654370 addons.xpi-utils debug new add-on {972ce4c6-7e08-4474-a285-3208198ce6fd} installed in app-global 1501246654373 deferredsave.extensions.json debug starting write 1501246654379 deferredsave.extensions.json debug save changes 1501246654380 deferredsave.extensions.json debug data changed while write in progress 1501246654380 addons.manager debug registering startup change 'installed' fxdriver@googlecode.com 1501246654380 addons.xpi-utils debug make addon app-profile:fxdriver@googlecode.com visible 1501246654381 deferredsave.extensions.json debug save changes 1501246654381 addons.manager debug registering startup change 'installed' aushelper@mozilla.org 1501246654390 addons.xpi debug loading bootstrap scope c:\program files\mozilla firefox\browser\features\aushelper@mozilla.org.xpi 1501246654394 addons.xpi debug calling bootstrap method install on aushelper@mozilla.org version 2.0 1501246654395 addons.xpi-utils debug make addon app-system-defaults:aushelper@mozilla.org visible 1501246654395 deferredsave.extensions.json debug save changes 1501246654395 addons.manager debug registering startup change 'installed' e10srollout@mozilla.org 1501246654396 addons.xpi debug loading bootstrap scope c:\program files\mozilla firefox\browser\features\e10srollout@mozilla.org.xpi 1501246654399 addons.xpi debug calling bootstrap method install on e10srollout@mozilla.org version 1.50 1501246654400 addons.xpi-utils debug make addon app-system-defaults:e10srollout@mozilla.org visible 1501246654400 deferredsave.extensions.json debug save changes 1501246654400 addons.manager debug registering startup change 'installed' firefox@getpocket.com 1501246654401 addons.xpi debug loading bootstrap scope c:\program files\mozilla firefox\browser\features\firefox@getpocket.com.xpi 1501246654405 addons.xpi debug calling bootstrap method install on firefox@getpocket.com version 1.0.5 1501246654405 addons.xpi-utils debug make addon app-system-defaults:firefox@getpocket.com visible 1501246654406 deferredsave.extensions.json debug save changes 1501246654406 addons.manager debug registering startup change 'installed' screenshots@mozilla.org 1501246654407 addons.xpi debug loading bootstrap scope c:\program files\mozilla firefox\browser\features\screenshots@mozilla.org.xpi 1501246654410 addons.xpi debug calling bootstrap method install on screenshots@mozilla.org version 6.6.0 1501246654410 addons.xpi-utils debug make addon app-system-defaults:screenshots@mozilla.org visible 1501246654410 deferredsave.extensions.json debug save changes 1501246654410 addons.manager debug registering startup change 'installed' webcompat@mozilla.org 1501246654411 addons.xpi debug loading bootstrap scope c:\program files\mozilla firefox\browser\features\webcompat@mozilla.org.xpi 1501246654413 addons.xpi debug calling bootstrap method install on webcompat@mozilla.org version 1.1 1501246654413 addons.xpi-utils debug make addon app-system-defaults:webcompat@mozilla.org visible 1501246654413 deferredsave.extensions.json debug save changes 1501246654414 addons.xpi-utils debug make addon app-global:{972ce4c6-7e08-4474-a285-3208198ce6fd} visible 1501246654414 deferredsave.extensions.json debug save changes 1501246654414 addons.xpi debug updating xpistate {"id":"fxdriver@googlecode.com","syncguid":"{284a66e3-05a6-4d03-b43d-a92a5f93e2f7}","location":"app-profile","version":"3.4.0","type":"extension","internalname":null,"updateurl":null,"updatekey":null,"optionsurl":null,"optionstype":null,"abouturl":null,"icons":{},"iconurl":null,"icon64url":null,"defaultlocale":{"name":"firefox webdriver","description":"webdriver implementation firefox","creator":"simon stewart","homepageurl":null},"visible":true,"active":false,"userdisabled":false,"appdisabled":true,"descriptor":"c:\\users\\chrisg~1\\appdata\\local\\temp\\anonymous8191426632770324153webdriver-profile\\extensions\\fxdriver@googlecode.com","installdate":1501246654037,"updatedate":1501246654037,"applybackgroundupdates":1,"bootstrap":false,"skinnable":false,"size":3303362,"sourceuri":null,"releasenotesuri":null,"softdisabled":false,"foreigninstall":true,"hasbinarycomponents":false,"strictcompatibility":false,"locales":[],"targetapplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minversion":"3.0","maxversion":"48.0"}],"targetplatforms":[{"os":"darwin","abi":null},{"os":"sunos","abi":null},{"os":"freebsd","abi":null},{"os":"openbsd","abi":null},{"os":"winnt","abi":null},{"os":"linux","abi":null}],"multiprocesscompatible":false,"signedstate":0,"seen":true,"dependencies":[],"hasembeddedwebextension":false,"mpcoptedout":false,"userpermissions":null} 1501246654415 addons.xpi debug updating xpistate {"id":"aushelper@mozilla.org","syncguid":"{a337c938-f101-467f-8334-642c2957ef77}","location":"app-system-defaults","version":"2.0","type":"extension","internalname":null,"updateurl":null,"updatekey":null,"optionsurl":null,"optionstype":null,"abouturl":null,"icons":{},"iconurl":null,"icon64url":null,"defaultlocale":{"name":"application update service helper","description":"sets value(s) in update url based on custom checks.","creator":null,"homepageurl":null},"visible":true,"active":true,"userdisabled":false,"appdisabled":false,"descriptor":"c:\\program files\\mozilla firefox\\browser\\features\\aushelper@mozilla.org.xpi","installdate":1498667065000,"updatedate":1498667065000,"applybackgroundupdates":1,"bootstrap":true,"skinnable":false,"size":8488,"sourceuri":null,"releasenotesuri":null,"softdisabled":false,"foreigninstall":false,"hasbinarycomponents":false,"strictcompatibility":false,"locales":[],"targetapplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minversion":"54.0.1","maxversion":"54.*"}],"targetplatforms":[],"multiprocesscompatible":true,"seen":true,"dependencies":[],"hasembeddedwebextension":false,"mpcoptedout":false,"userpermissions":null} 1501246654415 addons.xpi debug getmodtime: recursive scan of aushelper@mozilla.org 1501246654415 addons.xpi debug updating xpistate {"id":"e10srollout@mozilla.org","syncguid":"{253d1e2b-244f-48a3-8215-48fd1ea043b0}","location":"app-system-defaults","version":"1.50","type":"extension","internalname":null,"updateurl":null,"updatekey":null,"optionsurl":null,"optionstype":null,"abouturl":null,"icons":{},"iconurl":null,"icon64url":null,"defaultlocale":{"name":"multi-process staged rollout","description":"staged rollout of firefox multi-process feature.","creator":null,"homepageurl":null},"visible":true,"active":true,"userdisabled":false,"appdisabled":false,"descriptor":"c:\\program files\\mozilla firefox\\browser\\features\\e10srollout@mozilla.org.xpi","installdate":1498667065000,"updatedate":1498667065000,"applybackgroundupdates":1,"bootstrap":true,"skinnable":false,"size":12519,"sourceuri":null,"releasenotesuri":null,"softdisabled":false,"foreigninstall":false,"hasbinarycomponents":false,"strictcompatibility":false,"locales":[],"targetapplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minversion":"54.0.1","maxversion":"54.*"}],"targetplatforms":[],"multiprocesscompatible":true,"seen":true,"dependencies":[],"hasembeddedwebextension":false,"mpcoptedout":false,"userpermissions":null} 1501246654415 addons.xpi debug getmodtime: recursive scan of e10srollout@mozilla.org 1501246654416 addons.xpi debug updating xpistate {"id":"firefox@getpocket.com","syncguid":"{82e97246-464d-494a-92d5-df6243a967d5}","location":"app-system-defaults","version":"1.0.5","type":"extension","internalname":null,"updateurl":null,"updatekey":null,"optionsurl":null,"optionstype":null,"abouturl":null,"icons":{},"iconurl":null,"icon64url":null,"defaultlocale":{"name":"pocket","description":"when find want view later, put in pocket.","creator":null,"homepageurl":null},"visible":true,"active":true,"userdisabled":false,"appdisabled":false,"descriptor":"c:\\program files\\mozilla firefox\\browser\\features\\firefox@getpocket.com.xpi","installdate":1498667066000,"updatedate":1498667066000,"applybackgroundupdates":1,"bootstrap":true,"skinnable":false,"size":913906,"sourceuri":null,"releasenotesuri":null,"softdisabled":false,"foreigninstall":false,"hasbinarycomponents":false,"strictcompatibility":false,"locales":[],"targetapplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minversion":"54.0.1","maxversion":"54.*"}],"targetplatforms":[],"multiprocesscompatible":true,"seen":true,"dependencies":[],"hasembeddedwebextension":false,"mpcoptedout":false,"userpermissions":null} 1501246654416 addons.xpi debug getmodtime: recursive scan of firefox@getpocket.com 1501246654417 addons.xpi debug updating xpistate {"id":"screenshots@mozilla.org","syncguid":"{88407b9c-4ff8-4d68-9615-aa613dbe559f}","location":"app-system-defaults","version":"6.6.0","type":"extension","internalname":null,"updateurl":null,"updatekey":null,"optionsurl":null,"optionstype":null,"abouturl":null,"icons":{},"iconurl":null,"icon64url":null,"defaultlocale":{"name":"firefox screenshots","description":null,"creator":null,"homepageurl":"https://pageshot.net/"},"visible":true,"active":true,"userdisabled":false,"appdisabled":false,"descriptor":"c:\\program files\\mozilla firefox\\browser\\features\\screenshots@mozilla.org.xpi","installdate":1498667067000,"updatedate":1498667067000,"applybackgroundupdates":1,"bootstrap":true,"skinnable":false,"size":716271,"sourceuri":null,"releasenotesuri":null,"softdisabled":false,"foreigninstall":false,"hasbinarycomponents":false,"strictcompatibility":false,"locales":[],"targetapplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minversion":"51.0a1","maxversion":"*"}],"targetplatforms":[],"multiprocesscompatible":true,"seen":true,"dependencies":[],"hasembeddedwebextension":false,"mpcoptedout":false,"userpermissions":null} 1501246654417 addons.xpi debug getmodtime: recursive scan of screenshots@mozilla.org 1501246654418 addons.xpi debug updating xpistate {"id":"webcompat@mozilla.org","syncguid":"{21466d10-4f5e-4882-9e6b-1d1c096fc15b}","location":"app-system-defaults","version":"1.1","type":"extension","internalname":null,"updateurl":null,"updatekey":null,"optionsurl":null,"optionstype":null,"abouturl":null,"icons":{},"iconurl":null,"icon64url":null,"defaultlocale":{"name":"web compat","description":"urgent post-release fixes web compatibility.","creator":null,"homepageurl":null},"visible":true,"active":true,"userdisabled":false,"appdisabled":false,"descriptor":"c:\\program files\\mozilla firefox\\browser\\features\\webcompat@mozilla.org.xpi","installdate":1498667066000,"updatedate":1498667066000,"applybackgroundupdates":1,"bootstrap":true,"skinnable":false,"size":9006,"sourceuri":null,"releasenotesuri":null,"softdisabled":false,"foreigninstall":false,"hasbinarycomponents":false,"strictcompatibility":false,"locales":[],"targetapplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minversion":"54.0.1","maxversion":"54.*"}],"targetplatforms":[],"multiprocesscompatible":true,"seen":true,"dependencies":[],"hasembeddedwebextension":false,"mpcoptedout":false,"userpermissions":null} 1501246654418 addons.xpi debug getmodtime: recursive scan of webcompat@mozilla.org 1501246654419 addons.xpi debug updating xpistate {"id":"{972ce4c6-7e08-4474-a285-3208198ce6fd}","syncguid":"{374c68bf-b5ce-4e4f-a6c4-f1532a743336}","location":"app-global","version":"54.0.1","type":"theme","internalname":"classic/1.0","updateurl":null,"updatekey":null,"optionsurl":null,"optionstype":null,"abouturl":null,"icons":{},"iconurl":"chrome://browser/content/default-theme-icon.svg","icon64url":null,"defaultlocale":{"name":"default","description":"the default theme.","creator":"mozilla","homepageurl":null,"contributors":["mozilla contributors"]},"visible":true,"active":true,"userdisabled":false,"appdisabled":false,"descriptor":"c:\\program files\\mozilla firefox\\browser\\extensions\\{972ce4c6-7e08-4474-a285-3208198ce6fd}.xpi","installdate":1498667065000,"updatedate":1498667065000,"applybackgroundupdates":1,"skinnable":true,"size":8207,"sourceuri":null,"releasenotesuri":null,"softdisabled":false,"foreigninstall":false,"hasbinarycomponents":false,"strictcompatibility":true,"locales":[],"targetapplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minversion":"54.0.1","maxversion":"54.0.1"}],"targetplatforms":[],"seen":true,"dependencies":[],"hasembeddedwebextension":false,"userpermissions":null} 1501246654420 addons.xpi debug getmodtime: recursive scan of {972ce4c6-7e08-4474-a285-3208198ce6fd} 1501246654444 deferredsave.extensions.json debug save changes 1501246654444 addons.xpi debug updating database changes installed add-ons 1501246654444 addons.xpi-utils debug updating add-on states 1501246654445 addons.xpi-utils debug writing add-ons list 1501246654452 addons.xpi debug registering manifest c:\program files\mozilla firefox\browser\features\aushelper@mozilla.org.xpi 1501246654452 addons.xpi debug calling bootstrap method startup on aushelper@mozilla.org version 2.0 1501246654453 addons.xpi debug registering manifest c:\program files\mozilla firefox\browser\features\e10srollout@mozilla.org.xpi 1501246654454 addons.xpi debug calling bootstrap method startup on e10srollout@mozilla.org version 1.50 1501246654455 addons.xpi debug registering manifest c:\program files\mozilla firefox\browser\features\firefox@getpocket.com.xpi 1501246654456 addons.xpi debug calling bootstrap method startup on firefox@getpocket.com version 1.0.5 1501246654456 addons.xpi debug registering manifest c:\program files\mozilla firefox\browser\features\screenshots@mozilla.org.xpi 1501246654457 addons.xpi debug calling bootstrap method startup on screenshots@mozilla.org version 6.6.0 1501246654457 addons.xpi debug registering manifest c:\program files\mozilla firefox\browser\features\webcompat@mozilla.org.xpi 1501246654458 addons.xpi debug calling bootstrap method startup on webcompat@mozilla.org version 1.1 1501246654461 addons.manager debug registering shutdown blocker xpiprovider 1501246654462 addons.manager debug provider finished startup: xpiprovider 1501246654462 addons.manager debug starting provider: lightweightthememanager 1501246654462 addons.manager debug registering shutdown blocker lightweightthememanager 1501246654462 addons.manager debug provider finished startup: lightweightthememanager 1501246654462 addons.manager debug starting provider: gmpprovider 1501246654467 addons.manager debug registering shutdown blocker gmpprovider 1501246654467 addons.manager debug provider finished startup: gmpprovider 1501246654467 addons.manager debug starting provider: pluginprovider 1501246654467 addons.manager debug registering shutdown blocker pluginprovider 1501246654467 addons.manager debug provider finished startup: pluginprovider 1501246654468 addons.manager debug completed startup sequence 1501246654778 addons.manager debug starting provider: <unnamed-provider> 1501246654778 addons.manager debug registering shutdown blocker <unnamed-provider> 1501246654779 addons.manager debug provider finished startup: <unnamed-provider> 1501246654937 deferredsave.extensions.json debug write succeeded 1501246654937 addons.xpi-utils debug xpi database saved, setting schema version preference 19 1501246654937 deferredsave.extensions.json debug starting timer 1501246654951 addons.repository debug no addons.json found. 1501246654951 deferredsave.addons.json debug save changes 1501246654954 deferredsave.addons.json debug starting timer 1501246654976 addons.manager debug starting provider: previousexperimentprovider 1501246654976 addons.manager debug registering shutdown blocker previousexperimentprovider 1501246654976 addons.manager debug provider finished startup: previousexperimentprovider 1501246654979 deferredsave.extensions.json debug starting write 1501246655004 deferredsave.addons.json debug starting write 1501246655006 deferredsave.extensions.json debug write succeeded 1501246655021 deferredsave.addons.json debug write succeeded [gpu 7220] warning: pipe error: 109: file c:/builds/moz2_slave/m-rel-w64-00000000000000000000/build/src/ipc/chromium/src/chrome/common/ipc_channel_win.cc, line 346 exception in thread "main" org.openqa.selenium.remote.unreachablebrowserexception: not start new session. possible causes invalid address of remote server or browser start-up failure. build info: version: 'unknown', revision: 'unknown', time: 'unknown' system info: host: 'chris-pc', ip: '192.xxx.x.xxx', os.name: 'windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_141' driver info: driver.version: firefoxdriver @ org.openqa.selenium.remote.remotewebdriver.execute(remotewebdriver.java:658) @ org.openqa.selenium.remote.remotewebdriver.startsession(remotewebdriver.java:250) @ org.openqa.selenium.remote.remotewebdriver.startsession(remotewebdriver.java:236) @ org.openqa.selenium.remote.remotewebdriver.<init>(remotewebdriver.java:137) @ org.openqa.selenium.firefox.firefoxdriver.<init>(firefoxdriver.java:191) @ org.openqa.selenium.firefox.firefoxdriver.<init>(firefoxdriver.java:108) @ org.openqa.selenium.firefox.firefoxdriver.<init>(firefoxdriver.java:104) @ newpackage.myclass.main(myclass.java:12) caused by: java.lang.nullpointerexception @ org.openqa.selenium.remote.service.driverservice.waituntilavailable(driverservice.java:192) @ org.openqa.selenium.firefox.xpidriverservice.start(xpidriverservice.java:94) @ org.openqa.selenium.remote.service.drivercommandexecutor.execute(drivercommandexecutor.java:78) @ org.openqa.selenium.remote.remotewebdriver.execute(remotewebdriver.java:637) ... 7 more
here answer question:
the error unreachablebrowserexception: not start new session. possible causes invalid address of remote server or browser start-up failure
says all.
as per guru99.com mentioned use webdriver.firefox.marionette
within system.setproperty
. in selenium 3.x
using webdriver.gecko.driver
instead.
so consider changing 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 answers question.
Comments
Post a Comment