Class Node
java.lang.Object
org.openqa.selenium.devtools.v119.dom.model.Node
DOM interaction is implemented in terms of mirror objects that represent the actual DOM nodes.
DOMNode is a base node mirror type.
-
Constructor Summary
ConstructorsConstructorDescriptionNode
(NodeId nodeId, Optional<NodeId> parentId, BackendNodeId backendNodeId, Integer nodeType, String nodeName, String localName, String nodeValue, Optional<Integer> childNodeCount, Optional<List<Node>> children, Optional<List<String>> attributes, Optional<String> documentURL, Optional<String> baseURL, Optional<String> publicId, Optional<String> systemId, Optional<String> internalSubset, Optional<String> xmlVersion, Optional<String> name, Optional<String> value, Optional<PseudoType> pseudoType, Optional<String> pseudoIdentifier, Optional<ShadowRootType> shadowRootType, Optional<FrameId> frameId, Optional<Node> contentDocument, Optional<List<Node>> shadowRoots, Optional<Node> templateContent, Optional<List<Node>> pseudoElements, Optional<Node> importedDocument, Optional<List<BackendNode>> distributedNodes, Optional<Boolean> isSVG, Optional<CompatibilityMode> compatibilityMode, Optional<BackendNode> assignedSlot) -
Method Summary
Modifier and TypeMethodDescriptionAttributes of the `Element` node in the form of flat array `[name1, value1, name2, value2]`.The BackendNodeId for this node.Base URL that `Document` or `FrameOwner` node uses for URL completion.Child count for `Container` nodes.Child nodes of this node when requested with children.Content document for frame owner elements.Distributed nodes for given insertion point.Document URL that `Document` or `FrameOwner` node points to.Frame ID for frame owner elements.Deprecated.`DocumentType`'s internalSubset.getIsSVG()
Whether the node is SVG.`Node`'s localName.getName()
`Attr`'s name.Node identifier that is passed into the rest of the DOM messages as the `nodeId`.`Node`'s nodeName.`Node`'s nodeType.`Node`'s nodeValue.The id of the parent node if any.Pseudo elements associated with this node.Pseudo element identifier for this node.Pseudo element type for this node.`DocumentType`'s publicId.Shadow root list for given element host.Shadow root type.`DocumentType`'s systemId.Content document fragment for template elements.getValue()
`Attr`'s value.`Document`'s XML version in case of XML documents.
-
Constructor Details
-
Node
public Node(NodeId nodeId, Optional<NodeId> parentId, BackendNodeId backendNodeId, Integer nodeType, String nodeName, String localName, String nodeValue, Optional<Integer> childNodeCount, Optional<List<Node>> children, Optional<List<String>> attributes, Optional<String> documentURL, Optional<String> baseURL, Optional<String> publicId, Optional<String> systemId, Optional<String> internalSubset, Optional<String> xmlVersion, Optional<String> name, Optional<String> value, Optional<PseudoType> pseudoType, Optional<String> pseudoIdentifier, Optional<ShadowRootType> shadowRootType, Optional<FrameId> frameId, Optional<Node> contentDocument, Optional<List<Node>> shadowRoots, Optional<Node> templateContent, Optional<List<Node>> pseudoElements, Optional<Node> importedDocument, Optional<List<BackendNode>> distributedNodes, Optional<Boolean> isSVG, Optional<CompatibilityMode> compatibilityMode, Optional<BackendNode> assignedSlot)
-
-
Method Details
-
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
The id of the parent node if any. -
getBackendNodeId
The BackendNodeId for this node. -
getNodeType
`Node`'s nodeType. -
getNodeName
`Node`'s nodeName. -
getLocalName
`Node`'s localName. -
getNodeValue
`Node`'s nodeValue. -
getChildNodeCount
Child count for `Container` nodes. -
getChildren
Child nodes of this node when requested with children. -
getAttributes
Attributes of the `Element` node in the form of flat array `[name1, value1, name2, value2]`. -
getDocumentURL
Document URL that `Document` or `FrameOwner` node points to. -
getBaseURL
Base URL that `Document` or `FrameOwner` node uses for URL completion. -
getPublicId
`DocumentType`'s publicId. -
getSystemId
`DocumentType`'s systemId. -
getInternalSubset
`DocumentType`'s internalSubset. -
getXmlVersion
`Document`'s XML version in case of XML documents. -
getName
`Attr`'s name. -
getValue
`Attr`'s value. -
getPseudoType
Pseudo element type for this node. -
getPseudoIdentifier
Pseudo element identifier for this node. Only present if there is a valid pseudoType. -
getShadowRootType
Shadow root type. -
getFrameId
Frame ID for frame owner elements. -
getContentDocument
Content document for frame owner elements. -
getShadowRoots
Shadow root list for given element host. -
getTemplateContent
Content document fragment for template elements. -
getPseudoElements
Pseudo elements associated with this node. -
getImportedDocument
Deprecated.Deprecated, as the HTML Imports API has been removed (crbug.com/937746). This property used to return the imported document for the HTMLImport links. The property is always undefined now. -
getDistributedNodes
Distributed nodes for given insertion point. -
getIsSVG
Whether the node is SVG. -
getCompatibilityMode
-
getAssignedSlot
-