コード例 #1
0
        public void Checkout_With_Item()
        {
            try
            {
                LoginPage.LoginAsStandardUser();

                ProductsPage.AddProductToCart("Sauce Labs Bike Light");

                CartPage.NavigateToCheckout();
                CheckoutFirstStepPage.EnterPersonalDetails();
                CheckoutOverviewPage.Checkout();
            }
            catch (Exception e) { throw e; }
        }
コード例 #2
0
        public void Validate_Checkout_Calculations()
        {
            try
            {
                LoginPage.LoginAsStandardUser();

                ProductsPage.AddProductToCart("Sauce Labs Fleece Jacket");
                ProductsPage.AddProductToCart("Sauce Labs Bike Light");

                CartPage.NavigateToCheckout();
                CheckoutFirstStepPage.EnterPersonalDetails();
                CheckoutOverviewPage.VerifyCheckoutMath();
            }
            catch (Exception e) { throw e; }
        }
コード例 #3
0
        public void Add_And_Remove_Products_From_Cart()
        {
            try
            {
                LoginPage.LoginAsStandardUser();

                ProductsPage.VerifyCartCount(0);

                ProductsPage.AddProductToCart("Sauce Labs Fleece Jacket");
                ProductsPage.AddProductToCart("Sauce Labs Bike Light");
                ProductsPage.VerifyCartCount(2);

                ProductsPage.RemoveProductFromCart("Sauce Labs Fleece Jacket");
                ProductsPage.RemoveProductFromCart("Sauce Labs Bike Light");
                ProductsPage.VerifyCartCount(0);
            }
            catch (Exception e) { throw e; }
        }