public Application(IWebDriver driver, WebDriverWait wait)
 {
     this.driver = driver;
     this.wait   = wait;
     cartPage    = new CartPage(driver, wait);
     mainPage    = new MainPage(driver, wait);
     productPage = new ProductPage(driver, wait);
     headerCart  = new HeaderCart(driver, wait);
 }
        internal void AddToCart()
        {
            headerCart = new HeaderCart(driver, wait);
            var counter = headerCart.GetNumberOfElementsInCart();

            if (driver.Url.Contains("yellow-duck-p-1"))
            {
                var select = new SelectElement(driver.FindElement(By.Name("options[Size]")));
                select.SelectByIndex(1);
            }
            btnAddToCart.Click();
            wait.Until(d => headerCart.GetNumberOfElementsInCart() != counter);
        }