Unable to run a ChromeDriver code as shown in video 11 . I have included all the Jars but still getting his error: | Selenium Forum
A
ADITI GUPTA Posted on 11/09/2019

A
ADITI GUPTA Replied on 11/09/2019

java.lang.NoClassDefFoundError: org/openqa/selenium/chrome/ChromeDriver

 

Code:

import org.testng.annotations.Test;
import org.openqa.selenium.chrome.ChromeDriver;

public class TestApp {


@Test
public void Test() {
// TODO Auto-generated method stub

System.setProperty("webdriver.chrome.driver","C:\\Users\\nishant.sethi\\Downloads\\selenium-java-3.141.59\\chromedriver.exe");

ChromeDriver c =new ChromeDriver();

c.get("https://google.com");

}

}


A
Ashish Thakur Replied on 11/09/2019

Please share the complete exception stack trace.