java - Failing to create Firefox Web Driver in Tomcat 7 -
i have application need use selenium firefox webdriver.
i'm using below configurations:
os : windows 8
ide : eclipse
selenium 3 , tomcat7.
mozilla version : 54.0.1
geckodriver version: 0.18.0
here code snapshot of i've done far.
system.setproperty("webdriver.gecko.driver", "c:\\users\\dalakada1\\desktop\\dev\\geckodriver.exe"); system.out.println("1"); desiredcapabilities capabilities = desiredcapabilities.firefox(); system.out.println("2"); capabilities.setcapability("marionette", true); system.out.println("3"); try { system.out.println("3.5"); //create driver webdriver driver = new firefoxdriver(); system.out.println("4");
it doesn't go beyond 3.5. searched on google , not find useful.
do need include geckodriver.exe
in web-inf/res?
Comments
Post a Comment