Package | Description |
---|---|
org.htmlunit.html |
Classes specific to HTML pages, particularly the
HtmlPage which represents
an HTML document and provides access to its content. |
Modifier and Type | Method and Description |
---|---|
<P extends Page> |
HtmlImageInput.click(int x,
int y)
Simulate clicking this input with a pointing device.
|
HtmlAnchor |
HtmlPage.getAnchorByHref(String href)
Returns the
HtmlAnchor with the specified href. |
HtmlAnchor |
HtmlPage.getAnchorByName(String name)
Returns the
HtmlAnchor with the specified name. |
HtmlAnchor |
HtmlPage.getAnchorByText(String text)
Returns the first anchor with the specified text.
|
HtmlButton |
HtmlForm.getButtonByName(String name)
Returns the first
HtmlButton element in this form that has the specified name. |
<E extends DomElement> |
HtmlPage.getElementByName(String name)
Returns the element with the specified name.
|
HtmlForm |
HtmlPage.getFormByName(String name)
Returns the first form that matches the specified name.
|
FrameWindow |
HtmlPage.getFrameByName(String name)
Returns the first frame contained in this page with the specified name.
|
<E extends HtmlElement> |
HtmlPage.getHtmlElementById(String elementId)
Returns the HTML element with the specified ID.
|
<I extends HtmlInput> |
HtmlForm.getInputByName(String name)
Returns the first input element which is a member of this form and has the specified name.
|
<I extends HtmlInput> |
HtmlForm.getInputByValue(String value)
Returns the first input in this form with the specified value.
|
<E extends HtmlElement> |
HtmlElement.getOneHtmlElementByAttribute(String elementName,
String attributeName,
String attributeValue)
Searches for an element based on the specified criteria, returning the first element which matches
said criteria.
|
HtmlOption |
HtmlSelect.getOptionByText(String text)
Returns the
HtmlOption object that has the specified text. |
HtmlOption |
HtmlSelect.getOptionByValue(String value)
Returns the
HtmlOption object that corresponds to the specified value. |
HtmlTableRow |
HtmlTable.getRowById(String id)
Finds and return the row with the specified id.
|
HtmlSelect |
HtmlForm.getSelectByName(String name)
Returns the first
HtmlSelect element in this form that has the specified name. |
HtmlTextArea |
HtmlForm.getTextAreaByName(String name)
Returns the first
HtmlTextArea element in this form that has the specified name. |
Copyright © 2002–2024 Gargoyle Software Inc.. All rights reserved.