java.lang.Object
org.openqa.selenium.devtools.v119.accessibility.Accessibility

@Beta public class Accessibility extends Object
  • Constructor Details

    • Accessibility

      public Accessibility()
  • Method Details

    • disable

      public static org.openqa.selenium.devtools.Command<Void> disable()
      Disables the accessibility domain.
    • enable

      public static org.openqa.selenium.devtools.Command<Void> enable()
      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.
    • getPartialAXTree

      @Beta public static org.openqa.selenium.devtools.Command<List<AXNode>> getPartialAXTree(Optional<NodeId> nodeId, Optional<BackendNodeId> backendNodeId, Optional<RemoteObjectId> objectId, Optional<Boolean> fetchRelatives)
      Fetches the accessibility node and partial accessibility tree for this DOM node, if it exists.
    • getFullAXTree

      @Beta public static org.openqa.selenium.devtools.Command<List<AXNode>> getFullAXTree(Optional<Integer> depth, Optional<FrameId> frameId)
      Fetches the entire accessibility tree for the root Document
    • getRootAXNode

      @Beta public static org.openqa.selenium.devtools.Command<AXNode> getRootAXNode(Optional<FrameId> frameId)
      Fetches the root node. Requires `enable()` to have been called previously.
    • getAXNodeAndAncestors

      @Beta public static org.openqa.selenium.devtools.Command<List<AXNode>> getAXNodeAndAncestors(Optional<NodeId> nodeId, Optional<BackendNodeId> backendNodeId, Optional<RemoteObjectId> objectId)
      Fetches a node and all ancestors up to and including the root. Requires `enable()` to have been called previously.
    • getChildAXNodes

      @Beta public static org.openqa.selenium.devtools.Command<List<AXNode>> getChildAXNodes(AXNodeId id, Optional<FrameId> frameId)
      Fetches a particular accessibility node by AXNodeId. Requires `enable()` to have been called previously.
    • queryAXTree

      @Beta public static org.openqa.selenium.devtools.Command<List<AXNode>> queryAXTree(Optional<NodeId> nodeId, Optional<BackendNodeId> backendNodeId, Optional<RemoteObjectId> objectId, Optional<String> accessibleName, Optional<String> role)
      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 mactch 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.
    • loadComplete

      public static org.openqa.selenium.devtools.Event<AXNode> loadComplete()
    • nodesUpdated

      public static org.openqa.selenium.devtools.Event<List<AXNode>> nodesUpdated()