pub struct QueryAxTree { /* private fields */ }Expand description
Query a DOM node’s accessibility subtree for accessible name and role. This command computes the name and role for all nodes in the subtree, including those that are ignored for accessibility, and returns those that match the specified name and role. If no DOM node is specified, or the DOM node does not exist, the command returns an error. If neither accessibleName or role is specified, it returns all the accessibility nodes in the subtree.
EXPERIMENTAL: This feature is experimental and may change or be removed.
Implementations§
Source§impl QueryAxTree
impl QueryAxTree
pub fn new() -> Self
pub fn with_node_id(self, node_id: impl Into<NodeId>) -> Self
pub fn with_backend_node_id( self, backend_node_id: impl Into<BackendNodeId>, ) -> Self
pub fn with_object_id(self, object_id: impl Into<RemoteObjectId>) -> Self
pub fn with_accessible_name(self, accessible_name: impl Into<String>) -> Self
pub fn with_role(self, role: impl Into<String>) -> Self
Trait Implementations§
Source§impl Clone for QueryAxTree
impl Clone for QueryAxTree
Source§fn clone(&self) -> QueryAxTree
fn clone(&self) -> QueryAxTree
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Command for QueryAxTree
impl Command for QueryAxTree
Source§impl Debug for QueryAxTree
impl Debug for QueryAxTree
Auto Trait Implementations§
impl Freeze for QueryAxTree
impl RefUnwindSafe for QueryAxTree
impl Send for QueryAxTree
impl Sync for QueryAxTree
impl Unpin for QueryAxTree
impl UnwindSafe for QueryAxTree
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more