Exemple #1
0
        public void InitializeDriver(DeliveryCriteria deliveryCriteria)
        {
            ChromeOptions options = new ChromeOptions
            {
                PageLoadStrategy = PageLoadStrategy.None
            };
            IWebDriver driver = new ChromeDriver($"{Directory.GetCurrentDirectory()}\\ChromeDriver", options)
            {
                Url = appSettings.Url
            };

            driver.Manage().Window.Size = new Size(1920, 1080);
            driver.Manage().Window.Maximize();

            driver.SwitchTo().Window(driver.WindowHandles[0]);
            driver.Begin(deliveryCriteria, secureSettings.Email, secureSettings.Password);
        }