Quaatso Education

Home Forums Selenium Forum Not able to open any page in firefox browser Reply To: Not able to open any page in firefox browser

Reply To: Not able to open any page in firefox browser

Home Forums Selenium Forum Not able to open any page in firefox browser Reply To: Not able to open any page in firefox browser

#4005

Nandan Singh
Keymaster

From your exception, it seems you are using Mozilla’s Gecko engine ( I don’t know how !!!). For this first you need to Marionette, which is nothing but the automation driver for Gecko engine.

Please try following steps for using this :

1. Download Marionette Driver from following link  :

https://github.com/mozilla/geckodriver/releases

2. Save above file at some location and unzip same.

3. Now copy the path till the marionette executable file and use following code :

File path = new File(“E:\\driver\\geckodriver.exe”); // this is the path till executable file

System.setProperty(“webdriver.gecko.driver”, path.getAbsolutePath());

WebDriver driver = new MarionetteDriver();

driver.get(“https://www.facebook.com/”);

To learn about Marionette please refer following link :

https://developer.mozilla.org/en-US/docs/Mozilla/QA/Marionette/WebDriver

Hope this will solve your problem.