i am learning selenium in eclipse but following error comes out-
Error: Main method not found in class driver, please define the main method as: public static void main(String[] args) or a JavaFX application class must extend javafx.application.Application
i already added selenium jar and selenium standalone jar files in buildpath but error still exists, here's the code
import org.apache.xpath.operations.String;
import org.openqa.selenium.firefox.FirefoxDriver;
public class driver{
public static void main(String[] args)
{
new FirefoxDriver();
}
}
i thoroughly searched, but not able to find the solution , please help