Just started with my first automation test case using Selenium Webdriver and Java Eclipse. Successfully installed latest versions of JDK 9, Selenium Webdriver 3.8.1 and Eclipse Oxygen.
Also, I have created a Project> Configured the build path with Selenium Standalone server, Selenium nodeps, Selenium nodeps sources of 3.8.1 along with remaining lib files. I have used the below code and on Running the same I m seeing Error pop-up but with no message on what the problem is happening. Please help as I am very new to this.
Code:
package drivertest;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
public class ChromeTest {
public static WebDriver driver;
public static void main(String[] args)
{
System.out.println("launching chrome browser");
System.setProperty("webdriver.chrome.driver","C:\\Selenium\\Chrome\\chromedriver.exe");
driver = new ChromeDriver();
driver.navigate().to("http://google.com");
}
}
Error screenshot:Eclipse Error on running