Beispiel #1
0
 public static void BasketPage()
 {
     try
     {
         Base.WhereIAm("BasketPage");
         IList <IWebElement> CheckTheBasket = DriverForChrome.FindElements(By.ClassName("cart-item-list"));
         if (CheckTheBasket.Count < 1)
         {
             Assert.Fail("Baskette ürün bulunamadı");
         }
     }
     catch (Exception)
     {
         throw;
     }
 }
        public static void AddToBasket()
        {
            IList <IWebElement> BasketItem = DriverForChrome.FindElements(By.ClassName("add-to-cart"));

            BasketItem[0].Click();
        }