public void HasContentMatching_example()
 {
     Assert.That(Browser, Shows.Content(new Regex(@"This.is.what.we.are.looking.for")));
     Assert.That(Browser.HasContentMatch(new Regex(@"This.is.not.in.the.page")), Is.False);
     Assert.Throws <AssertionException>(() => Assert.That(Browser,
                                                          Shows.Content(new Regex(@"This.is.not.in.the.page"))));
 }
Exemple #2
0
        public void HasContent_example()
        {
            Assert.That(browser, Shows.Content("This is what we are looking for"));
            Assert.That(browser.HasContent("This is not in the page"), Is.False);

            Assert.Throws <AssertionException>(() => Assert.That(browser, Shows.Content("This is not in the page")));
        }
Exemple #3
0
 public void AssertCurrentViewingUsers(string userNameText)
 {
     Assert.That(Browser.FindCss(".current-users"), Shows.Content(userNameText));
 }
Exemple #4
0
 public void ThenIShouldSee(string text)
 {
     Assert.That(Browser, Shows.Content(text));
 }
 public void ThenTheResultShouldBeOnTheScreenWithUX(int p0)
 {
     Assert.That(_browser, Shows.Content("Ofrecido por Google en: English"));
 }
Exemple #6
0
 public void ThenIShouldBeAbleToSeeThatSite()
 {
     Assert.That(_browser, Shows.Content("Hi from tenant Default - Orchard VNext Rocks"));
 }