Class Node
- java.lang.Object
-
- org.openqa.selenium.devtools.dom.model.Node
-
public class Node extends java.lang.ObjectDOM interaction is implemented in terms of mirror objects that represent the actual DOM nodes. DOMNode is a base node mirror type.
-
-
Constructor Summary
Constructors Constructor Description Node(NodeId nodeId, NodeId parentId, BackendNodeId backendNodeId, java.lang.Integer nodeType, java.lang.String nodeName, java.lang.String localName, java.lang.String nodeValue, java.lang.Integer childNodeCount, java.util.List<Node> children, java.util.List<java.lang.String> attributes, java.lang.String documentURL, java.lang.String baseURL, java.lang.String publicId, java.lang.String systemId, java.lang.String internalSubset, java.lang.String xmlVersion, java.lang.String name, java.lang.String value, PseudoType pseudoType, ShadowRootType shadowRootType, FrameId frameId, Node contentDocument, java.util.List<Node> shadowRoots, Node templateContent, java.util.List<Node> pseudoElements, Node importedDocument, java.util.List<BackendNode> distributedNodes, java.lang.Boolean isSVG)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.String>getAttributes()Attributes of the `Element` node in the form of flat array `[name1, value1, name2, value2]`.BackendNodeIdgetBackendNodeId()The BackendNodeId for this node.java.lang.StringgetBaseURL()Base URL that `Document` or `FrameOwner` node uses for URL completion.java.lang.IntegergetChildNodeCount()Child count for `Container` nodes.java.util.List<Node>getChildren()Child nodes of this node when requested with children.NodegetContentDocument()Content document for frame owner elements.java.util.List<BackendNode>getDistributedNodes()Distributed nodes for given insertion point.java.lang.StringgetDocumentURL()Document URL that `Document` or `FrameOwner` node points to.FrameIdgetFrameId()Frame ID for frame owner elements.NodegetImportedDocument()Import document for the HTMLImport links.java.lang.StringgetInternalSubset()`DocumentType`'s internalSubset.java.lang.BooleangetIsSVG()Whether the node is SVG.java.lang.StringgetLocalName()`Node`'s localName.java.lang.StringgetName()`Attr`'s name.NodeIdgetNodeId()Node identifier that is passed into the rest of the DOM messages as the `nodeId`.java.lang.StringgetNodeName()`Node`'s nodeName.java.lang.IntegergetNodeType()`Node`'s nodeType.java.lang.StringgetNodeValue()`Node`'s nodeValue.NodeIdgetParentId()The id of the parent node if any.java.util.List<Node>getPseudoElements()Pseudo elements associated with this node.PseudoTypegetPseudoType()Pseudo element type for this node.java.lang.StringgetPublicId()`DocumentType`'s publicId.java.util.List<Node>getShadowRoots()Shadow root list for given element host.ShadowRootTypegetShadowRootType()Shadow root type.java.lang.StringgetSystemId()`DocumentType`'s systemId.NodegetTemplateContent()Content document fragment for template elements.java.lang.StringgetValue()`Attr`'s value.java.lang.StringgetXmlVersion()`Document`'s XML version in case of XML documents.
-
-
-
Constructor Detail
-
Node
public Node(NodeId nodeId, NodeId parentId, BackendNodeId backendNodeId, java.lang.Integer nodeType, java.lang.String nodeName, java.lang.String localName, java.lang.String nodeValue, java.lang.Integer childNodeCount, java.util.List<Node> children, java.util.List<java.lang.String> attributes, java.lang.String documentURL, java.lang.String baseURL, java.lang.String publicId, java.lang.String systemId, java.lang.String internalSubset, java.lang.String xmlVersion, java.lang.String name, java.lang.String value, PseudoType pseudoType, ShadowRootType shadowRootType, FrameId frameId, Node contentDocument, java.util.List<Node> shadowRoots, Node templateContent, java.util.List<Node> pseudoElements, Node importedDocument, java.util.List<BackendNode> distributedNodes, java.lang.Boolean isSVG)
-
-
Method Detail
-
getNodeId
public NodeId getNodeId()
Node identifier that is passed into the rest of the DOM messages as the `nodeId`. Backend will only push node with given `id` once. It is aware of all requested nodes and will only fire DOM events for nodes known to the client.
-
getParentId
public NodeId getParentId()
The id of the parent node if any.
-
getBackendNodeId
public BackendNodeId getBackendNodeId()
The BackendNodeId for this node.
-
getNodeType
public java.lang.Integer getNodeType()
`Node`'s nodeType.
-
getNodeName
public java.lang.String getNodeName()
`Node`'s nodeName.
-
getLocalName
public java.lang.String getLocalName()
`Node`'s localName.
-
getNodeValue
public java.lang.String getNodeValue()
`Node`'s nodeValue.
-
getChildNodeCount
public java.lang.Integer getChildNodeCount()
Child count for `Container` nodes.
-
getChildren
public java.util.List<Node> getChildren()
Child nodes of this node when requested with children.
-
getAttributes
public java.util.List<java.lang.String> getAttributes()
Attributes of the `Element` node in the form of flat array `[name1, value1, name2, value2]`.
-
getDocumentURL
public java.lang.String getDocumentURL()
Document URL that `Document` or `FrameOwner` node points to.
-
getBaseURL
public java.lang.String getBaseURL()
Base URL that `Document` or `FrameOwner` node uses for URL completion.
-
getPublicId
public java.lang.String getPublicId()
`DocumentType`'s publicId.
-
getSystemId
public java.lang.String getSystemId()
`DocumentType`'s systemId.
-
getInternalSubset
public java.lang.String getInternalSubset()
`DocumentType`'s internalSubset.
-
getXmlVersion
public java.lang.String getXmlVersion()
`Document`'s XML version in case of XML documents.
-
getName
public java.lang.String getName()
`Attr`'s name.
-
getValue
public java.lang.String getValue()
`Attr`'s value.
-
getPseudoType
public PseudoType getPseudoType()
Pseudo element type for this node.
-
getShadowRootType
public ShadowRootType getShadowRootType()
Shadow root type.
-
getFrameId
public FrameId getFrameId()
Frame ID for frame owner elements.
-
getContentDocument
public Node getContentDocument()
Content document for frame owner elements.
-
getShadowRoots
public java.util.List<Node> getShadowRoots()
Shadow root list for given element host.
-
getTemplateContent
public Node getTemplateContent()
Content document fragment for template elements.
-
getPseudoElements
public java.util.List<Node> getPseudoElements()
Pseudo elements associated with this node.
-
getImportedDocument
public Node getImportedDocument()
Import document for the HTMLImport links.
-
getDistributedNodes
public java.util.List<BackendNode> getDistributedNodes()
Distributed nodes for given insertion point.
-
getIsSVG
public java.lang.Boolean getIsSVG()
Whether the node is SVG.
-
-