I am unable to solve the WebDriver cannot be resolved to a type error and tried in many ways.
My code:
package selenium;
public class Test {
public static void main(String[] args) {
// TODO Auto-generated method stub
System.setProperty("webdriver.chrome.driver", "E:\chromedriver_win32\chromedriver.exe");
WebDriver driver=new ChromeDriver();
driver.get("https://www.selenium.dev/downloads/");
driver.manage().window().maximize();
}
}
I have Configured Java21, Selenium 4.27 and Eclipse IDE for Java Developers (includes Incubating components) Version: 2024-12 (4.34.0)
3