pub struct DomNodeBuilder { /* private fields */ }experimental and DOMSnapshot and CSS and DOM and DOMDebugger and Page only.Implementations§
Source§impl DomNodeBuilder
impl DomNodeBuilder
Sourcepub fn node_value(&mut self, v: String) -> &mut Self
pub fn node_value(&mut self, v: String) -> &mut Self
Node’s nodeValue.
Sourcepub fn text_value(&mut self, v: String) -> &mut Self
pub fn text_value(&mut self, v: String) -> &mut Self
Only set for textarea elements, contains the text value.
Sourcepub fn input_value(&mut self, v: String) -> &mut Self
pub fn input_value(&mut self, v: String) -> &mut Self
Only set for input elements, contains the input’s associated text value.
Sourcepub fn input_checked(&mut self, v: bool) -> &mut Self
pub fn input_checked(&mut self, v: bool) -> &mut Self
Only set for radio and checkbox input elements, indicates if the element has been checked
Sourcepub fn option_selected(&mut self, v: bool) -> &mut Self
pub fn option_selected(&mut self, v: bool) -> &mut Self
Only set for option elements, indicates if the element has been selected
Sourcepub fn backend_node_id(&mut self, v: BackendNodeId) -> &mut Self
pub fn backend_node_id(&mut self, v: BackendNodeId) -> &mut Self
Node’s id, corresponds to DOM.Node.backendNodeId.
Sourcepub fn child_node_indexes(&mut self, v: Vec<u32>) -> &mut Self
pub fn child_node_indexes(&mut self, v: Vec<u32>) -> &mut Self
The indexes of the node’s child nodes in the domNodes array returned by getSnapshot, if
any.
Sourcepub fn attributes(&mut self, v: Vec<NameValue>) -> &mut Self
pub fn attributes(&mut self, v: Vec<NameValue>) -> &mut Self
Attributes of an Element node.
Sourcepub fn pseudo_element_indexes(&mut self, v: Vec<u32>) -> &mut Self
pub fn pseudo_element_indexes(&mut self, v: Vec<u32>) -> &mut Self
Indexes of pseudo elements associated with this node in the domNodes array returned by
getSnapshot, if any.
Sourcepub fn layout_node_index(&mut self, v: u32) -> &mut Self
pub fn layout_node_index(&mut self, v: u32) -> &mut Self
The index of the node’s related layout tree node in the layoutTreeNodes array returned by
getSnapshot, if any.
Sourcepub fn document_url(&mut self, v: String) -> &mut Self
pub fn document_url(&mut self, v: String) -> &mut Self
Document URL that Document or FrameOwner node points to.
Sourcepub fn base_url(&mut self, v: String) -> &mut Self
pub fn base_url(&mut self, v: String) -> &mut Self
Base URL that Document or FrameOwner node uses for URL completion.
Sourcepub fn content_language(&mut self, v: String) -> &mut Self
pub fn content_language(&mut self, v: String) -> &mut Self
Only set for documents, contains the document’s content language.
Sourcepub fn document_encoding(&mut self, v: String) -> &mut Self
pub fn document_encoding(&mut self, v: String) -> &mut Self
Only set for documents, contains the document’s character set encoding.
Sourcepub fn frame_id(&mut self, v: FrameId) -> &mut Self
pub fn frame_id(&mut self, v: FrameId) -> &mut Self
Frame ID for frame owner elements and also for the document node.
Sourcepub fn content_document_index(&mut self, v: u32) -> &mut Self
pub fn content_document_index(&mut self, v: u32) -> &mut Self
The index of a frame owner element’s content document in the domNodes array returned by
getSnapshot, if any.
Sourcepub fn pseudo_type(&mut self, v: PseudoType) -> &mut Self
pub fn pseudo_type(&mut self, v: PseudoType) -> &mut Self
Type of a pseudo element node.
Sourcepub fn shadow_root_type(&mut self, v: ShadowRootType) -> &mut Self
pub fn shadow_root_type(&mut self, v: ShadowRootType) -> &mut Self
Shadow root type.
Sourcepub fn is_clickable(&mut self, v: bool) -> &mut Self
pub fn is_clickable(&mut self, v: bool) -> &mut Self
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 event_listeners(&mut self, v: Vec<EventListener>) -> &mut Self
pub fn event_listeners(&mut self, v: Vec<EventListener>) -> &mut Self
Details of the node’s event listeners, if any.
Sourcepub fn current_source_url(&mut self, v: String) -> &mut Self
pub fn current_source_url(&mut self, v: String) -> &mut Self
The selected url for nodes with a srcset attribute.
Sourcepub fn origin_url(&mut self, v: String) -> &mut Self
pub fn origin_url(&mut self, v: String) -> &mut Self
The url of the script (if any) that generates this node.
Sourcepub fn scroll_offset_x(&mut self, v: f64) -> &mut Self
pub fn scroll_offset_x(&mut self, v: f64) -> &mut Self
Scroll offsets, set when this node is a Document.
pub fn scroll_offset_y(&mut self, v: f64) -> &mut Self
pub fn build(&mut self) -> Result<DomNode, &'static str>
Trait Implementations§
Source§impl Clone for DomNodeBuilder
impl Clone for DomNodeBuilder
Source§fn clone(&self) -> DomNodeBuilder
fn clone(&self) -> DomNodeBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more