I want to run selenium program from command line. The code I have is
class Akash
{
public static void main(String args[])
{
org.openqa.selenium.WebDriver driver = new org.openqa.selenium.firefox.FirefoxDriver();
}
}
Filename : Akash.java (Path : C:\Users\anigam\Desktop\Testing)
The required jars are present here : C:\Users\anigam\Desktop\Order Streaming\Automation_03.04.2017\For_Checkin\uitestframework\lib
I compiled the file as :
javac -cp "C:\Users\anigam\Desktop\Order Streaming\Automation_03.04.2017\For_Checkin\uitestframework\lib*" Akash.java
The compilation was successfull and I got Akash.class generated here :
C:\Users\anigam\Desktop\Testing
When I am trying to execute this class file as :
java -cp "C:\Users\anigam\Desktop\Order Streaming\Automation_03.04.2017\For_Checkin\uitestframework\lib*" Akash
I am getting an error :
Error: Could not find or load main class Akash
Can someone please help.
Thanks much.