public class HtmlElementUtil extends Object
HtmlElement
helper methods.Constructor and Description |
---|
HtmlElementUtil() |
Modifier and Type | Method and Description |
---|---|
static com.gargoylesoftware.htmlunit.Page |
click(com.gargoylesoftware.htmlunit.html.HtmlElement element)
Click on the supplied element.
|
static boolean |
hasClassName(com.gargoylesoftware.htmlunit.html.HtmlElement element,
String className)
Does the supplied element define the specified HTML "class" name.
|
public static com.gargoylesoftware.htmlunit.Page click(com.gargoylesoftware.htmlunit.html.HtmlElement element) throws IOException
Waits for all executing JavaScript tasks to complete before returning.
element
- The element to click.IOException
- if an IO error occurspublic static boolean hasClassName(com.gargoylesoftware.htmlunit.html.HtmlElement element, String className)
element
- The element to check.className
- The HTML "class" name to check for.true
if the element defines the specified class, otherwise false
.Copyright © 2004–2022. All rights reserved.