Creating the DriverFactory

For now i will just move the driver creation code to a separate class (DriverFactory, for now i am keeping it in the same steps package) and extend the ExampleSteps class from the DriverFactory class.

So basically, our new classed would like the following


public class DriverFactory  {

protected WebDriver driver = new FirefoxDriver();

results matching ""

    No results matching ""