Package org.htmlunit.html
Class HtmlElementUtil
- java.lang.Object
-
- org.htmlunit.html.HtmlElementUtil
-
public class HtmlElementUtil extends Object
HtmlElementhelper methods.- Author:
- tom.fennelly@gmail.com
-
-
Constructor Summary
Constructors Constructor Description HtmlElementUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.htmlunit.Pageclick(org.htmlunit.html.HtmlElement element)Click on the supplied element.static booleanhasClassName(org.htmlunit.html.HtmlElement element, String className)Does the supplied element define the specified HTML "class" name.
-
-
-
Method Detail
-
click
public static org.htmlunit.Page click(org.htmlunit.html.HtmlElement element) throws IOExceptionClick 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(org.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:
trueif the element defines the specified class, otherwisefalse.
-
-