public class ElementWithClass
extends org.hamcrest.TypeSafeDiagnosingMatcher<org.jsoup.nodes.Element>
| Modifier and Type | Method and Description |
|---|---|
void |
describeTo(org.hamcrest.Description description) |
static org.hamcrest.Matcher<org.jsoup.nodes.Element> |
hasClass(String className)
Creates a
Matcher for a JSoup Element with the specified css class(es). |
protected boolean |
matchesSafely(org.jsoup.nodes.Element item,
org.hamcrest.Description mismatchDescription) |
public static org.hamcrest.Matcher<org.jsoup.nodes.Element> hasClass(String className)
Matcher for a JSoup Element with the specified css class(es). Multiple classes can be
separated by whitespace as valid in HTML. E.g. <div class='a b c'></div> would be matched by
hasClass('c b').className - The css class content to matchMatcher for a JSoup Element with the specified css class(es)protected boolean matchesSafely(org.jsoup.nodes.Element item,
org.hamcrest.Description mismatchDescription)
matchesSafely in class org.hamcrest.TypeSafeDiagnosingMatcher<org.jsoup.nodes.Element>public void describeTo(org.hamcrest.Description description)
Copyright © 2016 FD Mediagroep. All rights reserved.