예제 #1
0
 public void AssertAreDisplayed(IList <Keyword> keywords)
 {
     PartialView.WaitFor("#keywordsList");
     foreach (var keyword in keywords)
     {
         Assert.IsTrue(PartialView.Content.ContainsText(keyword.Name), PartialView.Content.ToString());
     }
 }
예제 #2
0
        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"));
        }
예제 #3
0
 public void AssertKeywordNameIs(string keywordName)
 {
     PartialView.WaitFor("#keywordName");
     Assert.IsTrue(PartialView.Content.ContainsText(keywordName), PartialView.Content.ToString());
 }