/// <summary> /// ...Description to be added... /// </summary> public DriverOptions BuildDriverOptions() { switch (BrowserType) { case BrowserType.CHROME: return(ChromeConfiguration.BuildOptions()); case BrowserType.EDGE: return(EdgeConfiguration.BuildOptions()); case BrowserType.FIREFOX: return(FirefoxConfiguration.BuildOptions()); case BrowserType.INTERNETEXPLROER: return(InternetExplorerConfiguration.BuildOptions()); case BrowserType.SAFARI: return(SafariConfiguration.BuildOptions()); case BrowserType.OPERA: return(OperaConfiguration.BuildOptions()); default: throw new ArgumentOutOfRangeException(); } }
public DriverConfiguration() { ChromeConfiguration = new ChromeConfiguration(); SeleniumGridHubUrl = new UriBuilder(); EdgeConfiguration = new EdgeConfiguration(); FirefoxConfiguration = new FirefoxConfiguration(); InternetExplorerConfiguration = new InternetExplorerConfiguration(); SafariConfiguration = new SafariConfiguration(); OperaConfiguration = new OperaConfiguration(); }