protected IDriver GetDriver(TestTarget target) { IConfiguration defaultConfig = null; //here we creating an IDriver using Selenium as the implementation return(VerifyToContinue((t) => DriverFactory.Create(target, out defaultConfig), target).ToIDriver(defaultConfig)); }
protected IDriver GetDriver(TestTarget target, IConfiguration configuration) { //here we creating an IDriver using Selenium as the implementation with configuration return(VerifyToContinue((t) => DriverFactory.Create(configuration), target).ToIDriver(configuration)); }