Пример #1
0
        private DriverManager getDriverFactory(BrowserType browserType, BrowserSettings browserSettings)
        {
            switch (browserType)
            {
            case BrowserType.FIREFOX:
                return(new FirefoxDriverManager(browserSettings));

            case BrowserType.CHROME:
                return(new ChromeDriverFacrory(browserSettings));

            default:
                return(null);
            }
        }
Пример #2
0
 public ChromeDriverFacrory(BrowserSettings browserSettings)
 {
     Settings = browserSettings;
 }
Пример #3
0
 public FirefoxDriverManager(BrowserSettings browserSettings)
 {
     Settings = browserSettings;
 }