예제 #1
0
        public void Confirm_Cart_Items_Match()
        {
            try
            {
                LoginPage.LoginAsStandardUser();

                List <object[]> itemsAndPrices = new List <object[]>()
                {
                    new object[] { "Test.allTheThings() T-Shirt (Red)", "15.99" },
                    new object[] { "Sauce Labs Bolt T-Shirt", "15.99" }
                };

                ProductsPage.AddProductsToCart(itemsAndPrices);

                CartPage.NavigateToCart();
                CartPage.ConfirmItemsInCart(itemsAndPrices);
            }
            catch (Exception e) { throw e; }
        }