While Executing TestNG program am getting “Cannot find class in classpath” error.


Can anyone help me how to over come from this ClassPath error.

Sravani Default Asked on June 10, 2015 in Selenium WebDriver.
Add Comment
4 Answer(s)

Can you explain your question clearly??  which error you are refering here

naresh_g7 Train Answered on June 11, 2015.
Add Comment


Thank you for replying.

When executing TestNG program with chrome driver error showing as “Cannot find class in classpath”.  When i have added chrome driver jar file in project it is showing an error. When deleted it is not showing.

i have downloaded chromedriver jar file from “http://chromedriver.storage.googleapis.com/index.html” .

RE: While Executing TestNG program am getting
Sravani Default Answered on June 11, 2015.
Add Comment

Try  to clean the source file as follows,
Eclipse->Project-> Clean
and then run the test cases again

Dineshk Train Answered on June 15, 2015.
Add Comment

If you have added Chrome Driver .exe  in Build path Library nothing will work .

The only solution is to remove Chrome Driver. exe from Build path.
Its work for me too.

skgaurav Default Answered on November 2, 2016.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.