public void ThenFilterIsCorrect() { var limits = ScenarioContext.Current.Get <KeyValuePair <int, int> >("filterLimits"); var booksResultsPage = new FilterPage(driver); ResultSetContext.SelectElement(booksResultsPage, 0); var itemPage = new GoodsItemPage(driver); GoodStateVerificationContext.VerifyItemPrice(itemPage, limits.Key, limits.Value); }
public void FilterByPrice() { //Arrange var booksResultsPage = new FilterPage(driver); var bookPage = new GoodsItemPage(driver); var minpriceValueToSet = 20; var maxpriceValueToSet = 250; //Act FilteringContext.FilterByPriceRange(booksResultsPage, minpriceValueToSet, maxpriceValueToSet); ResultSetContext.SelectElement(booksResultsPage, 0); //Assert GoodStateVerificationContext.VerifyItemPrice(bookPage, minpriceValueToSet, maxpriceValueToSet); }