pub struct NodeTreeSnapshot { /* private fields */ }experimental and DOMSnapshot and CSS and DOM and DOMDebugger and Page only.Expand description
Table containing nodes.
Implementations§
Source§impl NodeTreeSnapshot
impl NodeTreeSnapshot
pub fn builder() -> NodeTreeSnapshotBuilder
Sourcepub fn parent_index(&self) -> Option<&Vec<u32>>
pub fn parent_index(&self) -> Option<&Vec<u32>>
Parent node index.
Sourcepub fn node_name(&self) -> Option<&Vec<StringIndex>>
pub fn node_name(&self) -> Option<&Vec<StringIndex>>
Node’s nodeName.
Sourcepub fn node_value(&self) -> Option<&Vec<StringIndex>>
pub fn node_value(&self) -> Option<&Vec<StringIndex>>
Node’s nodeValue.
Sourcepub fn backend_node_id(&self) -> Option<&Vec<BackendNodeId>>
pub fn backend_node_id(&self) -> Option<&Vec<BackendNodeId>>
Node’s id, corresponds to DOM.Node.backendNodeId.
Sourcepub fn attributes(&self) -> Option<&Vec<ArrayOfStrings>>
pub fn attributes(&self) -> Option<&Vec<ArrayOfStrings>>
Attributes of an Element node. Flatten name, value pairs.
Sourcepub fn text_value(&self) -> Option<&RareStringData>
pub fn text_value(&self) -> Option<&RareStringData>
Only set for textarea elements, contains the text value.
Sourcepub fn input_value(&self) -> Option<&RareStringData>
pub fn input_value(&self) -> Option<&RareStringData>
Only set for input elements, contains the input’s associated text value.
Sourcepub fn input_checked(&self) -> Option<&RareBooleanData>
pub fn input_checked(&self) -> Option<&RareBooleanData>
Only set for radio and checkbox input elements, indicates if the element has been checked
Sourcepub fn option_selected(&self) -> Option<&RareBooleanData>
pub fn option_selected(&self) -> Option<&RareBooleanData>
Only set for option elements, indicates if the element has been selected
Sourcepub fn content_document_index(&self) -> Option<&RareIntegerData>
pub fn content_document_index(&self) -> Option<&RareIntegerData>
The index of the document in the list of the snapshot documents.
Sourcepub fn pseudo_type(&self) -> Option<&RareStringData>
pub fn pseudo_type(&self) -> Option<&RareStringData>
Type of a pseudo element node.
Sourcepub fn is_clickable(&self) -> Option<&RareBooleanData>
pub fn is_clickable(&self) -> Option<&RareBooleanData>
Whether this DOM node responds to mouse clicks. This includes nodes that have had click event listeners attached via JavaScript as well as anchor tags that naturally navigate when clicked.
Sourcepub fn current_source_url(&self) -> Option<&RareStringData>
pub fn current_source_url(&self) -> Option<&RareStringData>
The selected url for nodes with a srcset attribute.
Sourcepub fn origin_url(&self) -> Option<&RareStringData>
pub fn origin_url(&self) -> Option<&RareStringData>
The url of the script (if any) that generates this node.
Trait Implementations§
Source§impl Clone for NodeTreeSnapshot
impl Clone for NodeTreeSnapshot
Source§fn clone(&self) -> NodeTreeSnapshot
fn clone(&self) -> NodeTreeSnapshot
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more