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")))); }
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"))); }
public void AssertCurrentViewingUsers(string userNameText) { Assert.That(Browser.FindCss(".current-users"), Shows.Content(userNameText)); }
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")); }
public void ThenIShouldBeAbleToSeeThatSite() { Assert.That(_browser, Shows.Content("Hi from tenant Default - Orchard VNext Rocks")); }