The TestNGTest Run configuration is displayed in the attached image. When I run this, it shows the error "Error: Could not find or load main class com.Selenium".
I also tried changing the Main Class in the Run configuration to "com.Selenium.TestNGTest", but after running that, it displays the error "Error: Main method not found in class com.Selenium.TestNGTest, please define the main method as: public static void main(String[] args)"
I also noticed that you have mentioned in the video that we have not written the main method ourselves here and the main method might be somewhere in the testng framework itself. So, if I have copied the testng jar files into the Lib, shouldn't it take care of the method we have written and let it run successfully without having to get into Run Configurations?
Please help!! I am unable to proceed because of this issue.. :(