public class PageContentMatcher extends org.hamcrest.TypeSafeMatcher<Throwable>
Throwable if it has any suppressed PageContentException, which contains a page content
(see PageContentException.getPageContent(), which matches the Matcher passed in as constructor
argument. It can be used together with Retry and
PageSource to retry on a specific page content.
Example: a "Gateway Timeout" page sent by Apache could mean that we want to retry a test.| Constructor and Description |
|---|
PageContentMatcher(org.hamcrest.Matcher<String> pageContentMatcher) |
| Modifier and Type | Method and Description |
|---|---|
void |
describeTo(org.hamcrest.Description description) |
protected boolean |
matchesSafely(Throwable testFailure) |
describeMismatch, describeMismatchSafely, matchespublic PageContentMatcher(org.hamcrest.Matcher<String> pageContentMatcher)
pageContentMatcher - this matcher will be used to match the page content as stringCopyright © 2017 willhaben internet service GmbH & Co KG. All rights reserved.