I have deleted the earlier version of eclipse I was using also updated the selenium 3.0.1, also added all the .jar files but now I'm getting a new error.
"The import org cannot be resolved"
Below is the code:
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
public class findByLinkedText {
public static void main(String[] args) {
System.setProperty("Webdriver.gecho.driver",
"C:\\Users\\lsharma1\\Desktop\\Selenium Drivers\\Gecho
driver\\ gechodriver.exe ");
WebDriver driver = new FirefoxDriver();
drive.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS); String URL = "https://www.google.co.in/"; driver.get(URL); driver.close();
}
}