Search code examples
javafirefoxselenium-webdriverfirefox-marionettegeckodriver

error while initializing marionette driver


I am using Selenium webdriver for testing application. I have firefox 48.0.1 installed windows 10 64 bit. I am using Marionette driver for application testing. However when I have mentioned :

WebDriver driver=new MarionetterDriver();

it gives the error :

Marionette driver cannot resolve to a type.

For the same, I have set

System.setProperty("webdriver.gecko.driver", "D:\\ashwini\\geckodriver.exe");

Solution

  • thanks for the reply, issue is resolved by adding selenium server standalone jar into the project. I have downloaded the latest jar of it n was able to import "org.openqa.selenium.firefox.MarionetteDriver"