pub struct QueryAXTreeParams<'a> { /* 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.
Implementations§
Source§impl<'a> QueryAXTreeParams<'a>
impl<'a> QueryAXTreeParams<'a>
Sourcepub fn builder() -> QueryAXTreeParamsBuilder<'a>
pub fn builder() -> QueryAXTreeParamsBuilder<'a>
Creates a builder for this type.
Sourcepub fn backend_node_id(&self) -> Option<&BackendNodeId>
pub fn backend_node_id(&self) -> Option<&BackendNodeId>
Identifier of the backend node for the root to query.
Sourcepub fn object_id(&self) -> Option<&RemoteObjectId<'a>>
pub fn object_id(&self) -> Option<&RemoteObjectId<'a>>
JavaScript object id of the node wrapper for the root to query.
Sourcepub fn accessible_name(&self) -> Option<&str>
pub fn accessible_name(&self) -> Option<&str>
Find nodes with this computed name.
Trait Implementations§
Source§impl<'a> CdpCommand<'a> for QueryAXTreeParams<'a>
impl<'a> CdpCommand<'a> for QueryAXTreeParams<'a>
Source§impl<'a> Clone for QueryAXTreeParams<'a>
impl<'a> Clone for QueryAXTreeParams<'a>
Source§fn clone(&self) -> QueryAXTreeParams<'a>
fn clone(&self) -> QueryAXTreeParams<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for QueryAXTreeParams<'a>
impl<'a> Debug for QueryAXTreeParams<'a>
Source§impl<'a> Default for QueryAXTreeParams<'a>
impl<'a> Default for QueryAXTreeParams<'a>
Source§fn default() -> QueryAXTreeParams<'a>
fn default() -> QueryAXTreeParams<'a>
Returns the “default value” for a type. Read more
Source§impl<'de, 'a> Deserialize<'de> for QueryAXTreeParams<'a>
impl<'de, 'a> Deserialize<'de> for QueryAXTreeParams<'a>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl<'a> Freeze for QueryAXTreeParams<'a>
impl<'a> RefUnwindSafe for QueryAXTreeParams<'a>
impl<'a> Send for QueryAXTreeParams<'a>
impl<'a> Sync for QueryAXTreeParams<'a>
impl<'a> Unpin for QueryAXTreeParams<'a>
impl<'a> UnsafeUnpin for QueryAXTreeParams<'a>
impl<'a> UnwindSafe for QueryAXTreeParams<'a>
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