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

Popular posts from this blog

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -