I am getting this error while running program
Exception in thread "main" java.lang.Error: Unresolved compilation problem: Type mismatch: cannot convert from FirefoxDriver to WebDriver
at selenium.FirstSelenium.main(FirstSelenium.java:11)
1.I have extracted all selenium jar files (using version -3.141.59)
2.I have downloaded geckodriver and given path is correct(geckodriver-v0.24.0-win64) 3.Also Imported import org.openqa.selenium.WebDriver; and import org.openqa.selenium.firefox.FirefoxDriver;
still getting the error.
import org.openqa.selenium.WebDriver; import org.openqa.selenium.firefox.FirefoxDriver;
public class FirstSelenium {
public static void main(String[] args) {
System.setProperty("webdriver.gecko.driver", "D:\\Drivers\\geckodriver.exe");
WebDriver driver= new FirefoxDriver();
driver.get("https://yahoo.com");
}
}