public void AssertAreDisplayed(IList <Keyword> keywords) { PartialView.WaitFor("#keywordsList"); foreach (var keyword in keywords) { Assert.IsTrue(PartialView.Content.ContainsText(keyword.Name), PartialView.Content.ToString()); } }
public string GetHrefFor(Keyword keyword) { PartialView.WaitFor("#keywordsList"); var a = Tag("a[href*=" + keyword.UrlFriendlyName + "]");// [@class='keywordUrl' and contains(., '" + keyword.Name + "')]"); Assert.IsTrue(a.ContainsText(keyword.Name), a.ToString()); return(a.GetAttribute("href")); }
public void AssertKeywordNameIs(string keywordName) { PartialView.WaitFor("#keywordName"); Assert.IsTrue(PartialView.Content.ContainsText(keywordName), PartialView.Content.ToString()); }