示例#1
0
        public void amazon_LoginValidation()
        {
            String email        = "";
            string pass         = "";
            String product      = "Samsung Galaxy S9 64GB";
            String AlienProduct = "Alienware AW2521HFL";

            homePage.ClickIdentficate();
            signInPage.TypeEmail(email);
            signInPage.ClickContinue();
            signInPage.TypePassword(pass);
            signInPage.ClickSigninButton();
            homePage.SearchProduct(product);
            resultsPage.GetFisrPrice();
            resultsPage.ClickSamsung();
            resultsPage.GetDetailPrice();
            resultsPage.ValidatePrices();
            resultsPage.AddToCart();
            resultsPage.ClickCarritoButton();
            cartPage.GetPrice();
            cartPage.ValidatePrices();
            cartPage.ValidateItems();
            cartPage.SearchNewItem(AlienProduct);
            cartPage.AddToCart();
            cartPage.ValidateNewItems();
        }