Наследование: OpenQA.Selenium.Chrome.ChromeDriver, IWebDriverWrapper
        public IWebDriver CreateNewInstance()
        {
            var options = new ChromeOptions();
            options.AddArgument("test-type");
            if (SeleniumTestsConfiguration.ChromeDriverIncognito)
            {
                options.AddArgument("--disable-extensions");
            }

            var driver = new ChromeDriverWrapper(options);
            driver.SetDefaultTimeouts();
            return driver;
        }
Пример #2
0
        public IWebDriver CreateNewInstance()
        {
            var options = new ChromeOptions();

            options.AddArgument("test-type");
            if (SeleniumTestsConfiguration.ChromeDriverIncognito)
            {
                options.AddArgument("-incognito");
            }

            var driver = new ChromeDriverWrapper(options);

            driver.SetDefaultTimeouts();
            return(driver);
        }