Class JSoupAssertions


  • public final class JSoupAssertions
    extends Object
    JSoup based assertions.
    Since:
    4.3
    • 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)