Selenium/Firefox not working Selenium/Firefox not working selenium selenium

Selenium/Firefox not working


This was happening because of new issue in latest browser of firefox.

Update your selenium jars. The new version of firefox(Or different browser) is not supporting old jars of selenium.

Download both Selenium Server (formerly the Selenium RC Server) Selenium Client & WebDriver Language Bindings

Replace them with old jars you are using. Update your mozilla also so you can get the updated results

source :- http://docs.seleniumhq.org/download/

To overcome from this issue you also need to setPreference as xpinstall.signatures.required", false to firefox Profile and then pass it to driver object

firefoxProfile.setPreference("xpinstall.signatures.required", false);

Below code is working fine for me.

static WebDriver driver=null;public static void main(String[] args) {final FirefoxProfile firefoxProfile = new FirefoxProfile();firefoxProfile.setPreference("xpinstall.signatures.required", false);driver = new FirefoxDriver(firefoxProfile);driver.get("https://www.google.de/");

Hope it will help you :)