Class JSoupAssertions
- java.lang.Object
-
- com.atlassian.confluence.it.jsoup.JSoupAssertions
-
public final class JSoupAssertions extends Object
JSoup based assertions.- Since:
- 4.3
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Method Detail
-
firstOf
public static org.jsoup.nodes.Element firstOf(org.jsoup.select.Elements elements)
-
assertHasAttribute
public static void assertHasAttribute(org.jsoup.nodes.Element element, String attributeName)
-
assertHasAttribute
public static void assertHasAttribute(org.jsoup.nodes.Element element, String attributeName, String expectedValue)
-
assertRelativeUrlAttributeEndsWith
public static void assertRelativeUrlAttributeEndsWith(org.jsoup.nodes.Element element, String attributeName, String urlFragmentEnd)
-
assertAbsoluteUrlAttributeEndsWith
public static void assertAbsoluteUrlAttributeEndsWith(org.jsoup.nodes.Element element, String attributeName, String urlFragmentEnd)
-
assertHasDataAttribute
public static void assertHasDataAttribute(org.jsoup.nodes.Element element, String attributeName, String expectedValue)
-
assertExists
public static void assertExists(JSoupFinder finder)
-
assertDoesNotExist
public static void assertDoesNotExist(JSoupFinder finder)
-
assertHasText
public static void assertHasText(JSoupFinder finder, String text)
-
-