Not able to execute a Webdriver Java Code from eclipse -


i configured web-driver in eclipse , configured ant , able execute project. created 1 more project , wrote first java code , when click on run button , not able execute though has no errors. here error throwing when try execute.

class not found dashboard java.lang.classnotfoundexception: dashboard @ java.net.urlclassloader$1.run(unknown source) @ java.net.urlclassloader$1.run(unknown source) @ java.security.accesscontroller.doprivileged(native method) @ java.net.urlclassloader.findclass(unknown source) @ java.lang.classloader.loadclass(unknown source) @ sun.misc.launcher$appclassloader.loadclass(unknown source) @ java.lang.classloader.loadclass(unknown source) @     org.eclipse.jdt.internal.junit.runner.remotetestrunner.loadclass(remotetestrunner.java:693) @ org.eclipse.jdt.internal.junit.runner.remotetestrunner.loadclasses(remotetestrunner.java:429) @ org.eclipse.jdt.internal.junit.runner.remotetestrunner.runtests(remotetestrunner.java:452) @ org.eclipse.jdt.internal.junit.runner.remotetestrunner.runtests(remotetestrunner.java:683) @ org.eclipse.jdt.internal.junit.runner.remotetestrunner.run(remotetestrunner.java:390) @ org.eclipse.jdt.internal.junit.runner.remotetestrunner.main(remotetestrunner.java:197) 

make sure have selenium-java-2.x.jar , junit/testng jar in classpath. make sure tests in classpath. set classpath right click on project -> properties -> java build path -> "add jars" or "add external jars".


Comments

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -