Class HtmlElementUtil

    • Constructor Detail

      • HtmlElementUtil

        public HtmlElementUtil()
    • Method Detail

      • click

        public static com.gargoylesoftware.htmlunit.Page click​(com.gargoylesoftware.htmlunit.html.HtmlElement element)
                                                        throws IOException
        Click on the supplied element.

        Waits for all executing JavaScript tasks to complete before returning.

        Parameters:
        element - The element to click.
        Returns:
        The page resulting from the click
        Throws:
        IOException - if an IO error occurs
      • hasClassName

        public static boolean hasClassName​(com.gargoylesoftware.htmlunit.html.HtmlElement element,
                                           String className)
        Does the supplied element define the specified HTML "class" name.
        Parameters:
        element - The element to check.
        className - The HTML "class" name to check for.
        Returns:
        true if the element defines the specified class, otherwise false.