Prashant Kumar
Prashant Kumar

Reputation: 33

Which Selenium JAR is compatible with Mozilla Firefox version 52 or, latest version

Previously I was using Selenium version 2.53 with Firefox version 46.1. But now Firefox is updated and I am trying to do with updated version.

So, respond me about "which Selenium JAR is compatible with Mozilla Firefox version 52 or, latest version"

Upvotes: 3

Views: 11468

Answers (2)

santhosh kumar
santhosh kumar

Reputation: 2019

No need to Update the selenium jars since your existing tests may not work properly with new selenium jars. Use the gecko driver to interact with firefox.

Add the path to gecko executable before initiating the Webdriver.

System.setProperty("webdriver.gecko.driver", "C:\\your_directory\\geckodriver.exe");

Upvotes: 1

undetected Selenium
undetected Selenium

Reputation: 193138

To work with Selenium 3.4.0 along with latest gecko driver v0.16.0 & Mozila Firefox 53.0, you need to download the gecko driver from here and save it. Mention the absolute location of gecko driver in your code as follows:

public void sampleMethod() 
{

    System.setProperty("webdriver.gecko.driver", "C:\\your_directory\\geckodriver.exe");
    WebDriver driver= new FirefoxDriver();
    driver.manage().window().maximize();
    driver.get("http://your_url.com");


}

Upvotes: 3

Related Questions