Пример #1
0
        public void ThenValidateThatTheShopCarHasAsANumber(string Amount)
        {
            var AmazonTest = new Framework.WebPageInteraction();

            AmountCart = Regex.Match(AmazonTest.GetCartAmount(driver), @"\d+").Value;
            Assert.AreEqual(AmountCart, Amount);
        }
Пример #2
0
        public void ThenVerifyThatTheCartNumberIsNow(string Amount)
        {
            var AmazonTest = new Framework.WebPageInteraction();

            AmountCart = Regex.Match(AmazonTest.GetCartAmount(driver), @"\d+").Value;
            Assert.AreEqual(AmountCart, Amount);
        }
Пример #3
0
        public void ThenValidateAgainFirstPriceVsCurrentPrice()
        {
            var AmazonTest = new Framework.WebPageInteraction();

            ProductCartPrice = AmazonTest.GetCartPrice(driver);
            Assert.AreEqual(Product1SearchedPrice, ProductCartPrice);
        }
Пример #4
0
        public void ThenValidateFirstPriceVsDetailPrice()
        {
            var AmazonTest = new Framework.WebPageInteraction();

            Product1DetailPrice = AmazonTest.GetDetailPrice(driver);
            Assert.AreEqual(Product1SearchedPrice, Product1DetailPrice);
        }
Пример #5
0
        public void WhenLoginWithValidCredentials()
        {
            var readMyFile = new Framework.ReadConfigFile();
            var AmazonTest = new Framework.WebPageInteraction();

            StrUserEmail    = readMyFile.ReadData("Email");
            StrUserPassword = readMyFile.ReadData("Password");
            AmazonTest.LoginWithValidCreds(StrUserEmail, StrUserPassword, driver);
        }
Пример #6
0
 public void GivenGoToAmazon_Com_Mx()
 {
     try
     {
         var readMyFile = new Framework.ReadConfigFile();
         var AmazonTest = new Framework.WebPageInteraction();
         StrWebSite = readMyFile.ReadData("WebSite");
         AmazonTest.GotoWebSite(driver, StrWebSite);
     }
     catch (Exception ex)
     {
         Console.WriteLine("Error: {0}", ex.Message);
     }
 }
Пример #7
0
        public void WhenSelectFirstProductAndSaveThePrice()
        {
            var AmazonTest = new Framework.WebPageInteraction();

            Product1SearchedPrice = AmazonTest.SelectFirstProductSavePrice(driver);
        }
Пример #8
0
        public void WhenSearchForProduct(string ProductName)
        {
            var AmazonTest = new Framework.WebPageInteraction();

            AmazonTest.SearchProduct(ProductName, driver);
        }
Пример #9
0
        public void WhenAddToCart()
        {
            var AmazonTest = new Framework.WebPageInteraction();

            AmazonTest.AddToCart(driver);
        }
Пример #10
0
        public void WhenSelectFirstProduct()
        {
            var AmazonTest = new Framework.WebPageInteraction();

            AmazonTest.ClickProduct(driver);
        }
Пример #11
0
        public void WhenClickOnTheProduct()
        {
            var AmazonTest = new Framework.WebPageInteraction();

            AmazonTest.ClickTheProduct(driver);
        }