Beispiel #1
0
 public void MakeAPurchase(string item)
 {
     try
     {
         HomePage home = new HomePage(driver);
         home.GoToPage();
         home.SearchItem(item);
         string itemTitle = home.SelectFristItem();
         home.AddToCart();
         home.AccessCart();
         Assert.IsTrue(home.ValidateItemCart(itemTitle));
     }
     catch (Exception ex)
     {
         Assert.Fail(@"Error occurred at " + System.Reflection.MethodBase.GetCurrentMethod().Name + "-> " + ex.ToString());
     }
 }