Package | Description |
---|---|
com.gargoylesoftware.htmlunit |
Framework classes (contains the WebClient class which is the main entry point).
|
com.gargoylesoftware.htmlunit.html |
Classes specific to HTML pages, particularly the HtmlPage which represents
an HTML document and provides access to its content.
|
com.gargoylesoftware.htmlunit.html.xpath |
XPath adapter implementation for the Htmlunit DOM
|
com.gargoylesoftware.htmlunit.javascript |
Classes in this package are specific to the JavaScript engine - users of HtmlUnit shouldn't
need anything in this package.
|
com.gargoylesoftware.htmlunit.javascript.host |
Implementations of the various JavaScript host objects - users of HtmlUnit shouldn't
need anything in this package.
|
com.gargoylesoftware.htmlunit.javascript.host.html |
Implementations of the HTML JavaScript host objects - users of HtmlUnit shouldn't
need anything in this package.
|
com.gargoylesoftware.htmlunit.javascript.host.xml |
Implementations of the XML JavaScript host objects - users of HtmlUnit shouldn't
need anything in this package.
|
com.gargoylesoftware.htmlunit.xml |
Classes specific to xml pages
|
Modifier and Type | Class and Description |
---|---|
class |
SgmlPage
|
Modifier and Type | Class and Description |
---|---|
protected class |
DomNode.DescendantElementsIterator<T extends DomNode>
Iterates over all descendants of a specific type, in document order.
|
interface |
DomNodeList<E extends DomNode>
|
Modifier and Type | Class and Description |
---|---|
class |
BaseFrame
Base class for frame and iframe.
|
class |
DomAttr
An attribute of an element.
|
class |
DomCDataSection
Representation of a CDATA node in the HTML DOM.
|
class |
DomCharacterData
Wrapper for the DOM node CharacterData.
|
class |
DomComment
Wrapper for the DOM node Comment.
|
class |
DomDocumentFragment
A DOM object for DocumentFragment.
|
class |
DomDocumentType
A DOM object for DocumentType.
|
class |
DomElement |
class |
DomNamespaceNode
Intermediate base class for DOM Nodes that have namespaces.
|
class |
DomProcessingInstruction
Wrapper for the DOM node ProcessingInstruction.
|
class |
DomText
Representation of a text node in the HTML DOM.
|
class |
HtmlAbbreviated
Wrapper for the HTML element "abbr".
|
class |
HtmlAcronym
Wrapper for the HTML element "acronym".
|
class |
HtmlAddress
Wrapper for the HTML element "address".
|
class |
HtmlAnchor
Wrapper for the HTML element "a".
|
class |
HtmlApplet
Wrapper for the HTML element "applet".
|
class |
HtmlArea
Wrapper for the HTML element "area".
|
class |
HtmlAudio
Wrapper for the HTML element "audio".
|
class |
HtmlBackgroundSound
Wrapper for the HTML element "bgsound".
|
class |
HtmlBase
Wrapper for the HTML element "base".
|
class |
HtmlBaseFont
Wrapper for the HTML element "basefont".
|
class |
HtmlBidirectionalOverride
Wrapper for the HTML element "bdo".
|
class |
HtmlBig
Wrapper for the HTML element "big".
|
class |
HtmlBlink
Wrapper for the HTML element "blink".
|
class |
HtmlBlockQuote
Wrapper for the HTML element "blockquote".
|
class |
HtmlBody
Wrapper for the HTML element "body".
|
class |
HtmlBold
Wrapper for the HTML element "b".
|
class |
HtmlBreak
Wrapper for the HTML element "br".
|
class |
HtmlButton
Wrapper for the HTML element "button".
|
class |
HtmlButtonInput
Wrapper for the HTML element "input" where type is "button".
|
class |
HtmlCanvas
Wrapper for the HTML element "canvas".
|
class |
HtmlCaption
Wrapper for the HTML element "caption".
|
class |
HtmlCenter
Wrapper for the HTML element "center".
|
class |
HtmlCheckBoxInput
Wrapper for the HTML element "input".
|
class |
HtmlCitation
Wrapper for the HTML element "cite".
|
class |
HtmlCode
Wrapper for the HTML element "code".
|
class |
HtmlDefinition
Wrapper for the HTML element "dfn".
|
class |
HtmlDefinitionDescription
Wrapper for the HTML element "dd".
|
class |
HtmlDefinitionList
Wrapper for the HTML element "dl".
|
class |
HtmlDefinitionTerm
Wrapper for the HTML element "dt".
|
class |
HtmlDeletedText
Wrapper for the HTML element "del".
|
class |
HtmlDirectory
Wrapper for the HTML element "dir".
|
class |
HtmlDivision
Wrapper for the HTML element "div".
|
class |
HtmlElement
An abstract wrapper for HTML elements.
|
class |
HtmlEmbed
Wrapper for the HTML element "embed".
|
class |
HtmlEmphasis
Wrapper for the HTML element "em".
|
class |
HtmlExample
Wrapper for the HTML element "xmp".
|
class |
HtmlFieldSet
Wrapper for the HTML element "fieldset".
|
class |
HtmlFileInput
Wrapper for the HTML element "input".
|
class |
HtmlFont
Wrapper for the HTML element "font".
|
class |
HtmlForm
Wrapper for the HTML element "form".
|
class |
HtmlFrame
Wrapper for the HTML element "frame".
|
class |
HtmlFrameSet
Wrapper for the HTML element "frameset".
|
class |
HtmlHead
Wrapper for the HTML element "head".
|
class |
HtmlHeading1
Wrapper for the HTML element "h1".
|
class |
HtmlHeading2
Wrapper for the HTML element "h2".
|
class |
HtmlHeading3
Wrapper for the HTML element "h3".
|
class |
HtmlHeading4
Wrapper for the HTML element "h4".
|
class |
HtmlHeading5
Wrapper for the HTML element "h5".
|
class |
HtmlHeading6
Wrapper for the HTML element "h6".
|
class |
HtmlHiddenInput
Wrapper for the HTML element "input" of type "hidden".
|
class |
HtmlHorizontalRule
Wrapper for the HTML element "hr".
|
class |
HtmlHtml
A representation of an HTML element "html".
|
class |
HtmlImage
Wrapper for the HTML element "img".
|
class |
HtmlImageInput
Wrapper for the HTML element "input".
|
class |
HtmlInlineFrame
Wrapper for the HTML element "iframe".
|
class |
HtmlInlineQuotation
Wrapper for the HTML element "q".
|
class |
HtmlInput
Wrapper for the HTML element "input".
|
class |
HtmlInsertedText
Wrapper for the HTML element "ins".
|
class |
HtmlIsIndex
Wrapper for the HTML element "isindex".
|
class |
HtmlItalic
Wrapper for the HTML element "i".
|
class |
HtmlKeyboard
Wrapper for the HTML element "kbd".
|
class |
HtmlLabel
Wrapper for the HTML element "label".
|
class |
HtmlLegend
Wrapper for the HTML element "legend".
|
class |
HtmlLink
Wrapper for the HTML element "link".
|
class |
HtmlListing
Wrapper for the HTML element "listing".
|
class |
HtmlListItem
Wrapper for the HTML element "li".
|
class |
HtmlMap
Wrapper for the HTML element "map".
|
class |
HtmlMarquee
Wrapper for the HTML element "marquee".
|
class |
HtmlMenu
Wrapper for the HTML element "menu".
|
class |
HtmlMeta
Wrapper for the HTML element "meta".
|
class |
HtmlMultiColumn
Wrapper for the HTML element "multicol".
|
class |
HtmlNoBreak
Wrapper for the HTML element "nobr".
|
class |
HtmlNoEmbed
Wrapper for the HTML element "noembed".
|
class |
HtmlNoFrames
Wrapper for the HTML element "noframes".
|
class |
HtmlNoScript
Wrapper for the HTML element "noscript".
|
class |
HtmlObject
Wrapper for the HTML element "object".
|
class |
HtmlOption
Wrapper for the HTML element "option".
|
class |
HtmlOptionGroup
Wrapper for the HTML element "optgroup".
|
class |
HtmlOrderedList
Wrapper for the HTML element "ol".
|
class |
HtmlPage
A representation of an HTML page returned from a server.
|
class |
HtmlParagraph
Wrapper for the HTML element "p".
|
class |
HtmlParameter
Wrapper for the HTML element "param".
|
class |
HtmlPasswordInput
Wrapper for the HTML element "input".
|
class |
HtmlPlainText
Wrapper for the HTML element "plaintext".
|
class |
HtmlPreformattedText
Wrapper for the HTML element "pre".
|
class |
HtmlRadioButtonInput
Wrapper for the HTML element "input".
|
class |
HtmlResetInput
Wrapper for the HTML element "input".
|
class |
HtmlS
Wrapper for the HTML element "s", a strike-through text style.
|
class |
HtmlSample
Wrapper for the HTML element "samp".
|
class |
HtmlScript
Wrapper for the HTML element "script".
When a script tag references an external script (with attribute src) it gets executed when the node is added to the DOM tree. |
class |
HtmlSelect
Wrapper for the HTML element "select".
|
class |
HtmlSmall
Wrapper for the HTML element "small".
|
class |
HtmlSource
Wrapper for the HTML element "source".
|
class |
HtmlSpacer
Wrapper for the HTML element "spacer".
|
class |
HtmlSpan
Wrapper for the HTML element "span".
|
class |
HtmlStrike
Wrapper for the HTML element "strike".
|
class |
HtmlStrong
Wrapper for the HTML element "strong".
|
class |
HtmlStyle
Wrapper for the HTML element "style".
|
class |
HtmlSubmitInput
Wrapper for the HTML element "input".
|
class |
HtmlSubscript
Wrapper for the HTML element "sub".
|
class |
HtmlSuperscript
Wrapper for the HTML element "sup".
|
class |
HtmlTable
Wrapper for the HTML element "table".
|
class |
HtmlTableBody
Wrapper for the HTML element "tbody".
|
class |
HtmlTableCell
An abstract cell that provides the implementation for HtmlTableDataCell and HtmlTableHeaderCell.
|
class |
HtmlTableColumn
Wrapper for the HTML element "col".
|
class |
HtmlTableColumnGroup
Wrapper for the HTML element "colgroup".
|
class |
HtmlTableDataCell
Wrapper for the HTML element "td".
|
class |
HtmlTableFooter
Wrapper for the HTML element "tfoot".
|
class |
HtmlTableHeader
Wrapper for the HTML element "thead".
|
class |
HtmlTableHeaderCell
Wrapper for the HTML "th" tag.
|
class |
HtmlTableRow
Wrapper for the HTML element "tr".
|
class |
HtmlTeletype
Wrapper for the HTML element "tt".
|
class |
HtmlTextArea
Wrapper for the HTML element "textarea".
|
class |
HtmlTextInput
Wrapper for the HTML element "input" with type="text".
|
class |
HtmlTitle
Wrapper for the HTML element "title".
|
class |
HtmlUnderlined
Wrapper for the HTML element "u".
|
class |
HtmlUnknownElement
An element that is returned for an HTML tag that is not supported by this framework.
|
class |
HtmlUnorderedList
Wrapper for the HTML element "ul".
|
class |
HtmlVariable
Wrapper for the HTML element "var".
|
class |
HtmlVideo
Wrapper for the HTML element "video".
|
class |
HtmlWordBreak
Wrapper for the HTML element "wbr".
|
class |
TableRowGroup
Superclass for the wrappers for the HTML elements "thead", "tbody" and "tfoot".
|
class |
XHtmlPage
A representation of an XHTML page returned from a server.
|
Modifier and Type | Method and Description |
---|---|
DomNode |
DomNode.appendChild(Node node) |
DomNode |
HtmlSelect.appendChild(Node node) |
DomNode |
HtmlNoScript.appendChild(Node node) |
DomNode |
DomElement.cloneNode(boolean deep) |
DomNode |
DomNode.cloneNode(boolean deep) |
DomNode |
DomChangeEvent.getChangedNode()
Returns the node that has been added or deleted.
|
protected DomNode |
HtmlElement.getEventTargetElement()
Returns the event target element.
|
protected DomNode |
HtmlOption.getEventTargetElement()
Returns the event target element.
|
DomNode |
DomNode.getFirstChild() |
DomNode |
DomNode.getLastChild() |
DomNode |
DomNode.getNextSibling() |
DomNode |
DomNode.getParentNode() |
DomNode |
DomChangeEvent.getParentNode()
Returns the parent of the node that was changed.
|
DomNode |
DomNode.getPreviousSibling() |
DomNode |
DomNode.ChildIterator.next() |
DomNode |
HtmlElement.querySelector(String selectors)
Returns the first element within the document that matches the specified group of selectors.
|
protected DomNode |
DomNode.querySelector(String selectors)
Returns the first element within the document that matches the specified group of selectors.
|
DomNode |
HtmlPage.querySelector(String selectors)
Returns the first element within the document that matches the specified group of selectors.
|
Modifier and Type | Method and Description |
---|---|
DomNodeList<DomNode> |
DomNode.getChildNodes() |
Iterable<DomNode> |
DomNode.getChildren() |
Iterable<DomNode> |
DomNode.getDescendants()
Returns an
Iterable that will recursively iterate over all of this node's descendants,
including DomText elements, DomComment elements, etc. |
static Iterator<DomNode> |
Util.getFollowingAxisIterator(DomNode contextNode)
Gets an iterator over all following nodes, depth-first.
|
static Iterator<DomNode> |
Util.getFollowingSiblingAxisIterator(DomNode contextNode)
Gets an iterator over all following nodes, depth-first.
|
static Iterator<DomNode> |
Util.getPrecedingAxisIterator(DomNode contextNode)
Gets an iterator over all preceding nodes, depth-first.
|
static Iterator<DomNode> |
Util.getPrecedingSiblingAxisIterator(DomNode contextNode)
Gets an iterator over all preceding siblings.
|
DomNodeList<DomNode> |
HtmlElement.querySelectorAll(String selectors)
Retrieves all element nodes from descendants of the starting element node that match any selector
within the supplied selector strings.
|
protected DomNodeList<DomNode> |
DomNode.querySelectorAll(String selectors)
Retrieves all element nodes from descendants of the starting element node that match any selector
within the supplied selector strings.
|
DomNodeList<DomNode> |
HtmlPage.querySelectorAll(String selectors)
Retrieves all element nodes from descendants of the starting element node that match any selector
within the supplied selector strings.
|
Modifier and Type | Method and Description |
---|---|
ScriptResult |
HtmlPage.executeJavaScriptFunctionIfPossible(net.sourceforge.htmlunit.corejs.javascript.Function function,
net.sourceforge.htmlunit.corejs.javascript.Scriptable thisObject,
Object[] args,
DomNode htmlElementScope)
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
Execute a Function in the given context. |
protected void |
DomNode.fireNodeAdded(DomNode parentNode,
DomNode addedNode)
Support for reporting DOM changes.
|
protected void |
DomNode.fireNodeDeleted(DomNode parentNode,
DomNode deletedNode)
Support for reporting DOM changes.
|
static Iterator<DomNode> |
Util.getFollowingAxisIterator(DomNode contextNode)
Gets an iterator over all following nodes, depth-first.
|
static Iterator<DomNode> |
Util.getFollowingSiblingAxisIterator(DomNode contextNode)
Gets an iterator over all following nodes, depth-first.
|
static Iterator<DomNode> |
Util.getPrecedingAxisIterator(DomNode contextNode)
Gets an iterator over all preceding nodes, depth-first.
|
static Iterator<DomNode> |
Util.getPrecedingSiblingAxisIterator(DomNode contextNode)
Gets an iterator over all preceding siblings.
|
void |
DomNode.insertBefore(DomNode newNode)
Inserts a new child node before this node into the child relationship this node is a
part of.
|
void |
HtmlOption.insertBefore(DomNode newNode)
Inserts a new child node before this node into the child relationship this node is a
part of.
|
boolean |
DomNode.isAncestorOf(DomNode node)
Returns true if this node is an ancestor of the specified node.
|
boolean |
DomNode.isAncestorOfAny(DomNode... nodes)
Returns true if this node is an ancestor of any of the specified nodes.
|
static void |
HTMLParser.parseFragment(DomNode parent,
DomNode context,
String source)
Parses the HTML content from the given string into an object tree representation.
|
static void |
HTMLParser.parseFragment(DomNode parent,
String source)
Parses the HTML content from the given string into an object tree representation.
|
void |
DomNode.replace(DomNode newNode)
Replaces this node with another node.
|
protected void |
DomNode.setNextSibling(DomNode next) |
protected void |
DomNode.setParentNode(DomNode parent)
Sets the parent node.
|
protected void |
DomNode.setPreviousSibling(DomNode previous) |
Constructor and Description |
---|
DomChangeEvent(DomNode parentNode,
DomNode changedNode)
Constructs a new DomChangeEvent from the given parent node and a changed node.
|
Modifier and Type | Method and Description |
---|---|
static List<Object> |
XPathUtils.getByXPath(DomNode node,
String xpathExpr)
Evaluates an XPath expression from the specified node, returning the resultant nodes.
|
Modifier and Type | Method and Description |
---|---|
<N extends DomNode> |
SimpleScriptable.getDomNodeOrDie()
Returns the DOM node that corresponds to this JavaScript object or throw
an exception if one cannot be found.
|
<N extends DomNode> |
SimpleScriptable.getDomNodeOrNull()
Returns the DOM node that corresponds to this JavaScript object
or null if a node hasn't been set.
|
Modifier and Type | Method and Description |
---|---|
Object |
JavaScriptEngine.callFunction(HtmlPage htmlPage,
net.sourceforge.htmlunit.corejs.javascript.Function javaScriptFunction,
net.sourceforge.htmlunit.corejs.javascript.Scriptable thisObject,
Object[] args,
DomNode htmlElement)
Calls a JavaScript function and return the result.
|
protected void |
SimpleScriptable.initParentScope(DomNode domNode,
SimpleScriptable scriptable)
Initialize the parent scope of a newly created scriptable.
|
SimpleScriptable |
SimpleScriptable.makeScriptableFor(DomNode domNode)
Builds a new the JavaScript object that corresponds to the specified object.
|
void |
SimpleScriptable.setDomNode(DomNode domNode)
Sets the DOM node that corresponds to this JavaScript object.
|
protected void |
SimpleScriptable.setDomNode(DomNode domNode,
boolean assignScriptObject)
Sets the DOM node that corresponds to this JavaScript object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
Event.applies(DomNode node)
Indicates if the current event can be applied to the provided node.
|
static Event |
Event.createPropertyChangeEvent(DomNode domNode,
String propertyName)
Creates a new Event with
Event.TYPE_PROPERTY_CHANGE type. |
protected Node |
Node.getJavaScriptNode(DomNode domNode)
Gets the JavaScript node for a given DomNode.
|
void |
Node.setDomNode(DomNode domNode)
Sets the DOM node that corresponds to this JavaScript object.
|
void |
FormField.setDomNode(DomNode domNode)
Sets the associated DOM node and sets the enclosing form as parent scope of the current element.
|
Constructor and Description |
---|
Event(DomNode domNode,
String type)
Creates a new event instance.
|
EventHandler(DomNode node,
String eventName,
String jsSnippet)
Builds a function that will execute the JavaScript code provided.
|
KeyboardEvent(DomNode domNode,
String type,
int character,
boolean shiftKey,
boolean ctrlKey,
boolean altKey)
Creates a new keyboard event instance.
|
MouseEvent(DomNode domNode,
String type,
boolean shiftKey,
boolean ctrlKey,
boolean altKey,
int button)
Creates a new event instance.
|
UIEvent(DomNode domNode,
String type)
Creates a new UI event instance.
|
Modifier and Type | Class and Description |
---|---|
static class |
HTMLElement.ProxyDomNode
ProxyDomNode.
|
Modifier and Type | Method and Description |
---|---|
<N extends DomNode> |
HTMLDocument.getDomNodeOrDie()
Returns the DOM node that corresponds to this JavaScript object or throw
an exception if one cannot be found.
|
Modifier and Type | Method and Description |
---|---|
DomNode |
HTMLElement.ProxyDomNode.appendChild(Node node) |
DomNode |
HTMLElement.ProxyDomNode.getDomNode()
Gets wrapped DomNode.
|
DomNode |
HTMLDocument.getDomNodeOrNull()
Returns the DOM node that corresponds to this JavaScript object
or null if a node hasn't been set.
|
Modifier and Type | Method and Description |
---|---|
protected Iterable<DomNode> |
HTMLCollection.getCandidates()
Gets the DOM node that have to be examined to see if they are matching.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
HTMLCollection.isMatching(DomNode node)
Indicates if the node should belong to the collection.
|
static void |
HTMLElement.parseHtmlSnippet(DomNode target,
boolean append,
String source)
Parses the specified HTML source code, appending the resultant content at the specified target location.
|
void |
HTMLElement.setDomNode(DomNode domNode)
Sets the DOM node that corresponds to this JavaScript object.
|
void |
HTMLAppletElement.setDomNode(DomNode domNode)
Sets the DOM node that corresponds to this JavaScript object.
|
void |
HTMLSpanElement.setDomNode(DomNode domNode)
Sets the DOM node that corresponds to this JavaScript object.
|
Constructor and Description |
---|
HTMLCollection(DomNode parentScope,
boolean attributeChangeSensitive,
String description)
Creates an instance.
|
HTMLCollectionTags(DomNode parentScope,
String description)
Creates an instance.
|
HTMLElement.ProxyDomNode(SgmlPage page,
DomNode target,
boolean append)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
XMLDocument.initParentScope(DomNode domNode,
SimpleScriptable scriptable)
Initialize the parent scope of a newly created scriptable.
|
SimpleScriptable |
XMLDocument.makeScriptableFor(DomNode domNode)
Builds a new the JavaScript object that corresponds to the specified object.
|
Modifier and Type | Class and Description |
---|---|
class |
XmlPage
A page that will be returned for response with content type "text/xml".
|
Modifier and Type | Method and Description |
---|---|
static void |
XmlUtil.appendChild(SgmlPage page,
DomNode parent,
Node child)
|
Copyright © 2002-2012 Gargoyle Software Inc.. All Rights Reserved.