예제 #1
0
        /// <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();
            }
        }
예제 #2
0
 public DriverConfiguration()
 {
     ChromeConfiguration           = new ChromeConfiguration();
     SeleniumGridHubUrl            = new UriBuilder();
     EdgeConfiguration             = new EdgeConfiguration();
     FirefoxConfiguration          = new FirefoxConfiguration();
     InternetExplorerConfiguration = new InternetExplorerConfiguration();
     SafariConfiguration           = new SafariConfiguration();
     OperaConfiguration            = new OperaConfiguration();
 }