public Driver NewWebDriver(Type driverType, Drivers.Browser browser) { try { var driver = (Driver)Activator.CreateInstance(driverType, browser); OpenDrivers++; return(driver); } catch (TargetInvocationException e) { throw e.InnerException; } }
public CustomDriver(Browser browser, ICapabilities capabilities) : base(CustomWebDriver(capabilities), browser) { }
public BrowserNotSupportedException(Browser browser, Type driverType) : this( browser,driverType, null) { }
public BrowserNotSupportedException(Browser browser, Type driverType, Exception inner) : base(string.Format("{0} is not supported by {1}", browser, driverType.Name), inner) { }