I have setup selenium in Intellij Idea. But when tried to create a simple instance it doesn't recognize "get" method.
This is what I have done up to now.
System.setProperty("webdriver.chrome.driver", "C:\\chromedriver_win32");
WebDriver driver = new ChromeDriver();
driver.get("http://www.google.com"); // get is in red and doesn't allow to import any package
Thread.sleep(5000); // Sleep also has same problem
How can I fix this?
I have added jar files. I'm using java webdriver
I have added jars inside the zip of selenium downloaded file
I did imports as they were suggested. I deleted the project. So, I don't have the code and imports now.
Even the thread cant identify its methods. For and example Thread.
doesn't suggest methods available.
declaring the driver didn't cause any trouble. But driver.
doesn't suggest any method including 'get'