Here i have a class named FirefoxPhDriver
public class FirefoxPhDriver extends AbstractWebPhDriver {
public static FirefoxPhDriver newInstance(
PhDriverIngredients ingredients) {
FirefoxPhDriver pd = new FirefoxPhDriver();
if (pd.verify(ingredients)) {
return pd;
}
return null;
}
}
As i new to java am not sure how can i call this newInstance
method in another class
i tried
FirefoxPhDriver drvr = new FirefoxPhDriver(ingrdients)
But am getting the constuctor FirefoxPhDriver is not visible