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)); }
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())); }