public class ElementWithChild
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> |
hasChild(String cssSelector)
Creates a
Matcher for a JSoup Element with a child element that matches expectedValue. |
protected boolean |
matchesSafely(org.jsoup.nodes.Element parent,
org.hamcrest.Description description) |
protected boolean matchesSafely(org.jsoup.nodes.Element parent,
org.hamcrest.Description description)
matchesSafely in class org.hamcrest.TypeSafeDiagnosingMatcher<org.jsoup.nodes.Element>public void describeTo(org.hamcrest.Description description)
public static org.hamcrest.Matcher<org.jsoup.nodes.Element> hasChild(String cssSelector)
Matcher for a JSoup Element with a child element that matches expectedValue.cssSelector - The CSS selector to match the child node on.Matcher for a JSoup ElementCopyright © 2016 FD Mediagroep. All rights reserved.