cdp-driver 0.5.0

Chrome DevTools Protocol (CDP) client for Rust: every command, event and type generated from the schema, with sessions, for browser automation and AI agents
Documentation
// @generated by `just generate-methods` from protocol/*.json.
// Do not edit by hand; edit xtask/ and regenerate.

//! The `Accessibility` domain.
//!
//! Method names for the `Accessibility` domain, for use with
//! [`CdpClient::call`](crate::CdpClient::call).
//!
//! This domain is experimental and may change without notice.

/// Disables the accessibility domain.
pub const DISABLE: &str = "Accessibility.disable";

/// Enables the accessibility domain which causes `AXNodeId`s to remain
/// consistent between method calls. This turns on accessibility for the page,
/// which can impact performance until accessibility is disabled.
pub const ENABLE: &str = "Accessibility.enable";

/// Fetches the accessibility node and partial accessibility tree for this DOM
/// node, if it exists.
///
/// Experimental: may change without notice.
///
/// Parameters:
/// - `nodeId`: DOM.NodeId (optional)
/// - `backendNodeId`: DOM.BackendNodeId (optional)
/// - `objectId`: Runtime.RemoteObjectId (optional)
/// - `fetchRelatives`: boolean (optional)
///
/// Returns: `nodes`
pub const GET_PARTIAL_AX_TREE: &str = "Accessibility.getPartialAXTree";

/// Fetches the entire accessibility tree for the root Document
///
/// Experimental: may change without notice.
///
/// Parameters:
/// - `depth`: integer (optional)
/// - `frameId`: Page.FrameId (optional)
///
/// Returns: `nodes`
pub const GET_FULL_AX_TREE: &str = "Accessibility.getFullAXTree";

/// Fetches the root node. Requires `enable()` to have been called previously.
///
/// Experimental: may change without notice.
///
/// Parameters:
/// - `frameId`: Page.FrameId (optional)
///
/// Returns: `node`
pub const GET_ROOT_AX_NODE: &str = "Accessibility.getRootAXNode";

/// Fetches a node and all ancestors up to and including the root. Requires
/// `enable()` to have been called previously.
///
/// Experimental: may change without notice.
///
/// Parameters:
/// - `nodeId`: DOM.NodeId (optional)
/// - `backendNodeId`: DOM.BackendNodeId (optional)
/// - `objectId`: Runtime.RemoteObjectId (optional)
///
/// Returns: `nodes`
pub const GET_AX_NODE_AND_ANCESTORS: &str = "Accessibility.getAXNodeAndAncestors";

/// Fetches a particular accessibility node by AXNodeId. Requires `enable()`
/// to have been called previously.
///
/// Experimental: may change without notice.
///
/// Parameters:
/// - `id`: AXNodeId
/// - `frameId`: Page.FrameId (optional)
///
/// Returns: `nodes`
pub const GET_CHILD_AX_NODES: &str = "Accessibility.getChildAXNodes";

/// 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: may change without notice.
///
/// Parameters:
/// - `nodeId`: DOM.NodeId (optional)
/// - `backendNodeId`: DOM.BackendNodeId (optional)
/// - `objectId`: Runtime.RemoteObjectId (optional)
/// - `accessibleName`: string (optional)
/// - `role`: string (optional)
///
/// Returns: `nodes`
pub const QUERY_AX_TREE: &str = "Accessibility.queryAXTree";