@Test public void worksNegative() { final WebDriver driver = mock(WebDriver.class); when(driver.getPageSource()).thenReturn(ANOTHER_HTML_BODY); assertThat("Should not found text", driver, not(textOnCurrentPageContains(TEXT_PART))); }
@Factory public static Matcher<WebDriver> textOnCurrentPageContains(String text) { return textOnCurrentPage(CoreMatchers.containsString(text)); }
HasTextMatcher extends TypeSafeMatcher<WebDriver> { @Factory public static Matcher<WebDriver> textOnCurrentPageContains(String text) { return textOnCurrentPage(CoreMatchers.containsString(text)); } }
HasTextMatcher extends TypeSafeMatcher<WebDriver> { @Factory public static Matcher<WebDriver> textOnCurrentPageContains(String text) { return textOnCurrentPage(CoreMatchers.containsString(text)); } protected  HasTextMatcher(Matcher<String> matcher); }
HasTextMatcher extends TypeSafeMatcher<WebDriver> { @Factory public static Matcher<WebDriver> textOnCurrentPageContains(String text) { return textOnCurrentPage(CoreMatchers.containsString(text)); } protected  HasTextMatcher(Matcher<String> matcher); @Override void describeTo(Description description); @Factory static Matcher<WebDriver> textOnCurrentPageContains(String text); @Factory static Matcher<WebDriver> textOnCurrentPage(Matcher<String> text); }
HasTextMatcher extends TypeSafeMatcher<WebDriver> { @Factory public static Matcher<WebDriver> textOnCurrentPageContains(String text) { return textOnCurrentPage(CoreMatchers.containsString(text)); } protected  HasTextMatcher(Matcher<String> matcher); @Override void describeTo(Description description); @Factory static Matcher<WebDriver> textOnCurrentPageContains(String text); @Factory static Matcher<WebDriver> textOnCurrentPage(Matcher<String> text);  }