pub struct NodeTreeSnapshot {Show 17 fields
pub parent_index: Option<Vec<i64>>,
pub node_type: Option<Vec<i64>>,
pub shadow_root_type: Option<RareStringData>,
pub node_name: Option<Vec<StringIndex>>,
pub node_value: Option<Vec<StringIndex>>,
pub backend_node_id: Option<Vec<BackendNodeId>>,
pub attributes: Option<Vec<ArrayOfStrings>>,
pub text_value: Option<RareStringData>,
pub input_value: Option<RareStringData>,
pub input_checked: Option<RareBooleanData>,
pub option_selected: Option<RareBooleanData>,
pub content_document_index: Option<RareIntegerData>,
pub pseudo_type: Option<RareStringData>,
pub pseudo_identifier: Option<RareStringData>,
pub is_clickable: Option<RareBooleanData>,
pub current_source_url: Option<RareStringData>,
pub origin_url: Option<RareStringData>,
}
Expand description
Table containing nodes. NodeTreeSnapshot
Fields§
§parent_index: Option<Vec<i64>>
Parent node index.
node_type: Option<Vec<i64>>
Node
’s nodeType.
shadow_root_type: Option<RareStringData>
Type of the shadow root the Node
is in. String values are equal to the ShadowRootType
enum.
node_name: Option<Vec<StringIndex>>
Node
’s nodeName.
node_value: Option<Vec<StringIndex>>
Node
’s nodeValue.
backend_node_id: Option<Vec<BackendNodeId>>
Node
’s id, corresponds to DOM.Node.backendNodeId.
attributes: Option<Vec<ArrayOfStrings>>
Attributes of an Element
node. Flatten name, value pairs.
text_value: Option<RareStringData>
Only set for textarea elements, contains the text value.
input_value: Option<RareStringData>
Only set for input elements, contains the input’s associated text value.
input_checked: Option<RareBooleanData>
Only set for radio and checkbox input elements, indicates if the element has been checked
option_selected: Option<RareBooleanData>
Only set for option elements, indicates if the element has been selected
content_document_index: Option<RareIntegerData>
The index of the document in the list of the snapshot documents.
pseudo_type: Option<RareStringData>
Type of a pseudo element node.
pseudo_identifier: Option<RareStringData>
Pseudo element identifier for this node. Only present if there is a valid pseudoType.
is_clickable: 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.
current_source_url: Option<RareStringData>
The selected url for nodes with a srcset attribute.
origin_url: Option<RareStringData>
The url of the script (if any) that generates this node.
Implementations§
Source§impl NodeTreeSnapshot
impl NodeTreeSnapshot
pub fn builder() -> NodeTreeSnapshotBuilder
Source§impl NodeTreeSnapshot
impl NodeTreeSnapshot
pub const IDENTIFIER: &'static str = "DOMSnapshot.NodeTreeSnapshot"
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