N
- public interface DOMNode extends DOMEventTarget
Modifier and Type | Interface and Description |
---|---|
static class |
DOMNode.Type |
Modifier and Type | Method and Description |
---|---|
DOMNode |
appendChild(DOMNode newChild)
Adds a node to the end of the list of children of a specified parent node.
|
short |
compareDocumentPosition(DOMNode other)
From the DOM standard
|
Object |
executeJavaScript(String script,
Object... arg) |
DOMNamedNodeMap<DOMNode> |
getAttributes()
Be careful can return null TODO: Gio check it!
|
WebBrowser |
getBrowser() |
DOMNodeList |
getChildNodes() |
String |
getDOMProperty(String domProperty)
returns the string value (calling toString()) of the specified property.
|
DOMNode |
getFirstChild() |
DOMNode |
getLastChild() |
String |
getLocalName() |
DOMNode |
getNextSibling() |
String |
getNodeName() |
DOMNode.Type |
getNodeType() |
String |
getNodeValue() |
DOMDocument |
getOwnerDocument() |
DOMNode |
getParentNode() |
DOMNode |
getPreviousSibling() |
String |
getTextContent() |
DOMXPathEvaluator |
getXPathEvaluator() |
String |
getXPathLocator()
Returns a unique xpath locator for this node.
|
DOMNode |
insertBefore(DOMNode newChild,
DOMNode refChild)
Inserts the specified node before a reference element as a child of the current node.
|
boolean |
isDescendant(DOMNode node) |
boolean |
isEqualNode(DOMNode other) |
boolean |
isSameNode(DOMNode other) |
boolean |
isStale()
Introduced for
WebBrowserBuilder.Engine.WEBDRIVER_FF to check if an element is stale. |
boolean |
isTextNode() |
boolean |
isVisible() |
DOMMutationObserver |
registerMutationObserver(boolean childList,
boolean attributes,
boolean subtree,
boolean characterData,
List<String> attributeFilter) |
DOMMutationObserver |
registerMutationObserver(DOMMutationObserver.MutationObserverOptions options) |
DOMNode |
removeChild(DOMNode child)
Removes a child node from the DOM.
|
DOMNode |
replaceChild(DOMNode newChild,
DOMNode oldChild)
Replaces one child node of the specified element with another.
|
void |
setTextContent(String text) |
String |
toPrettyHTML()
Return a html representation of this node
|
String |
toPrettyString() |
addEventListener, removeEventListener
boolean isStale()
WebBrowserBuilder.Engine.WEBDRIVER_FF
to check if an element is stale. Using a stale object throws an
exceptionDOMNode.Type getNodeType()
String getDOMProperty(String domProperty)
domProperty
- DOMNodeList getChildNodes()
String getNodeValue()
DOMNode getParentNode()
String getLocalName()
DOMNamedNodeMap<DOMNode> getAttributes()
String getNodeName()
String toPrettyHTML()
String getTextContent()
boolean isDescendant(DOMNode node)
boolean isVisible()
DOMXPathEvaluator getXPathEvaluator()
DOMXPathEvaluator
associated to this node. There is one DOMXPathEvaluator associated with each
browser instance, therefore this method is equivalent to the same method in WebBrowser
short compareDocumentPosition(DOMNode other)
other
- other nodeDOMDocument getOwnerDocument()
boolean isSameNode(DOMNode other)
boolean isEqualNode(DOMNode other)
DOMNode appendChild(DOMNode newChild)
newChild
- DOMNode removeChild(DOMNode child)
child
- DOMNode replaceChild(DOMNode newChild, DOMNode oldChild)
newChild
- oldChild
- DOMNode insertBefore(DOMNode newChild, DOMNode refChild)
newChild
- refChild
- void setTextContent(String text)
DOMNode getPreviousSibling()
DOMNode getNextSibling()
DOMNode getLastChild()
DOMNode getFirstChild()
boolean isTextNode()
DOMMutationObserver registerMutationObserver(boolean childList, boolean attributes, boolean subtree, boolean characterData, List<String> attributeFilter)
DOMMutationObserver registerMutationObserver(DOMMutationObserver.MutationObserverOptions options)
String getXPathLocator()
String toPrettyString()
WebBrowser getBrowser()
Copyright © 2020 OXPath Team. All rights reserved.