public final class JSoupAssertions extends Object
Modifier and Type | Method and Description |
---|---|
static void |
assertAbsoluteUrlAttributeEndsWith(org.jsoup.nodes.Element element,
String attributeName,
String urlFragmentEnd) |
static void |
assertDoesNotExist(JSoupFinder finder) |
static void |
assertExists(JSoupFinder finder) |
static void |
assertHasAttribute(org.jsoup.nodes.Element element,
String attributeName) |
static void |
assertHasAttribute(org.jsoup.nodes.Element element,
String attributeName,
String expectedValue) |
static void |
assertHasDataAttribute(org.jsoup.nodes.Element element,
String attributeName,
String expectedValue) |
static void |
assertHasText(JSoupFinder finder,
String text) |
static void |
assertRelativeUrlAttributeEndsWith(org.jsoup.nodes.Element element,
String attributeName,
String urlFragmentEnd) |
static org.jsoup.nodes.Element |
firstOf(org.jsoup.select.Elements elements) |
public static org.jsoup.nodes.Element firstOf(org.jsoup.select.Elements elements)
public static void assertHasAttribute(org.jsoup.nodes.Element element, String attributeName)
public static void assertHasAttribute(org.jsoup.nodes.Element element, String attributeName, String expectedValue)
public static void assertRelativeUrlAttributeEndsWith(org.jsoup.nodes.Element element, String attributeName, String urlFragmentEnd)
public static void assertAbsoluteUrlAttributeEndsWith(org.jsoup.nodes.Element element, String attributeName, String urlFragmentEnd)
public static void assertHasDataAttribute(org.jsoup.nodes.Element element, String attributeName, String expectedValue)
public static void assertExists(JSoupFinder finder)
public static void assertDoesNotExist(JSoupFinder finder)
public static void assertHasText(JSoupFinder finder, String text)
Copyright © 2003–2019 Atlassian. All rights reserved.