public void VerifyResultsSearchedAsKeywordInstead(String value) { resultsPage = new ResultsPage(driver); Assert.IsTrue(resultsPage.errorDiv.Displayed); Assert.IsTrue(resultsPage.errorDiv.Text.Contains("searching as a keyword instead")); Assert.IsTrue(resultsPage.ResultsContainValue(value)); Assert.IsFalse(resultsPage.IngredientsContainValue(value)); }
public void VerifyResultsDoNotContainValue(String value) { resultsPage = new ResultsPage(driver); Assert.IsFalse(resultsPage.ResultsContainValue(value)); }