Method Summary |
|
public WebApplet[] | getApplets() Returns a proxy for each applet found embedded in this page. |
URL | getBaseURL() Returns the base URL for this HTML segment. |
public Node | getDOM() Returns a copy of the domain object model associated with this page. |
public String[] | getElementNames() Returns a list of HTML element names contained in this HTML section. |
public HTMLElement | getElementWithID(String id) Returns the HTMLElement with the specified ID. |
HTMLElement[] | getElementsByTagName(Node dom, String name) |
public HTMLElement[] | getElementsWithAttribute(String name, String value) Returns the HTML elements with an attribute with the specified name and value. |
public HTMLElement[] | getElementsWithName(String name) Returns the HTML elements with the specified name. |
public WebForm | getFirstMatchingForm(HTMLElementPredicate predicate, Object criteria) Returns the first link found in the page matching the specified criteria. |
public WebLink | getFirstMatchingLink(HTMLElementPredicate predicate, Object criteria) Returns the first link found in the page matching the specified criteria. |
public WebTable | getFirstMatchingTable(HTMLElementPredicate predicate, Object criteria) Returns the first table in the response which matches the specified predicate and value. |
public TextBlock | getFirstMatchingTextBlock(HTMLElementPredicate predicate, Object criteria) Returns the first text block found in the page which matches the specified predicate and value. |
public WebForm | getFormWithID(String id) Returns the form found in the page with the specified ID. |
public WebForm | getFormWithName(String name) Returns the form found in the page with the specified name. |
public WebForm[] | getForms() Returns the forms found in the page in the order in which they appear. |
public WebFrame[] | getFrames() Returns the frames found in the page in the order in which they appear. |
public WebImage | getImageWithAltText(String altText) Returns the first image found in the page with the specified alt attribute. |
public WebImage | getImageWithName(String name) Returns the image found in the page with the specified name. |
public WebImage | getImageWithSource(String source) Returns the first image found in the page with the specified src attribute. |
public WebImage[] | getImages() Returns the images found in the page in the order in which they appear. |
String | getIncludedScript(String srcAttribute) Returns the contents of an included script, given its src attribute. |
public WebLink | getLinkWith(String text) Returns the first link which contains the specified text. |
public WebLink | getLinkWithID(String id) Returns the link found in the page with the specified ID. |
public WebLink | getLinkWithImageText(String text) Returns the link which contains the first image with the specified text as its 'alt' attribute. |
public WebLink | getLinkWithName(String name) Returns the link found in the page with the specified name. |
public WebLink[] | getLinks() Returns the links found in the page in the order in which they appear. |
public WebForm[] | getMatchingForms(HTMLElementPredicate predicate, Object criteria) Returns all links found in the page matching the specified criteria. |
public WebLink[] | getMatchingLinks(HTMLElementPredicate predicate, Object criteria) Returns all links found in the page matching the specified criteria. |
public WebTable[] | getMatchingTables(HTMLElementPredicate predicate, Object criteria) Returns the tables in the response which match the specified predicate and value. |
public TextBlock | getNextTextBlock(TextBlock block) |
Node | getOriginalDOM() Returns the domain object model associated with this page, to be used internally. |
WebResponse | getResponse() |
Node | getRootNode() |
public WebTable | getTableStartingWith(String text) Returns the first table in the response which has the specified text as the full text of
its first non-blank row and non-blank column. |
public WebTable | getTableStartingWithPrefix(String text) Returns the first table in the response which has the specified text as a prefix of the text
in its first non-blank row and non-blank column. |
public WebTable | getTableWithID(String ID) Returns the first table in the response which has the specified text as its ID attribute. |
public WebTable | getTableWithSummary(String summary) Returns the first table in the response which has the specified text as its summary attribute. |
public WebTable[] | getTables() Returns the top-level tables found in the page in the order in which they appear. |
public TextBlock[] | getTextBlocks() Returns the top-level block elements found in the page in the order in which they appear. |
void | setRootNode(Node rootNode) Specifies the root node for this HTML fragment. |
public String | toString() |