webdriverManager = Injectors.getInjector().getInstance(WebdriverManager.class);
outputDirectory = configuration.getOutputDirectory();
this.defaultDriver = defaultDriver;
if (defaultDriver != null) {
webDriverFactory = new WebDriverFactory();
pages = new Pages(getDriver());
stepFactory = new StepFactory(pages);
} else {
stepFactory = new StepFactory();
}
registerStepListeners(additionalListeners);