While running Selenium
TestNG
maven
project from command prompt, I am getting this error:
Unable to initialize main class org.testng.TestNG
I am using command as below:
java -cp C:\Users\Sonali\eclipse-workspace\FacebookLoginTestNG\lib\*;C:\Users\Sonali\eclipse-workspace\FacebookLoginTestNG\src\test\java\com\mycomapny\fbauto org.testng.TestNG testng.xml
I guess running a maven
project is tricky. As the lib
folder is not getting created in maven
project, I have created it manually.
How can I solve this?