Beispiel #1
0
        public void ValidateBookAuthorAndTitle_PDPvsGRID()
        {
            var somePage = new BooksPage(driver);

            var gridItem = new List <string>();
            var pdpItem  = new List <string>();

            somePage.ReturnFirstBookAuthorAndTitle(gridItem);
            somePage.OpenFirstItemPDP();
            somePage.ReturnPDPBookAuthorAndTitle(pdpItem);

            Assert.That(gridItem.Equals(pdpItem));
        }
Beispiel #2
0
        public void ValidateBookPricesInMaxMinRange()
        {
            var somePage = new BooksPage(driver);

            somePage.OpenFirstItemPDP();

            int[] priceRange      = { };
            int[] suggestedPrices = { };

            somePage.ReturnExpectedMinAndMaxPrice(priceRange);
            somePage.OpenPDPPrices();
            somePage.ReturnSuggestedPricesOnPDP(suggestedPrices);

            Assert.IsTrue(suggestedPrices.All(x => x > priceRange.Min() && x < priceRange.Max()));
        }