Interface Accessibility


  • public interface Accessibility
    • Method Summary

      Modifier and Type Method Description
      void disable()
      Disables the accessibility domain.
      void enable()
      Enables the accessibility domain which causes AXNodeIds to remain consistent between method calls.
      java.util.List<AXNode> getFullAXTree()
      Fetches the entire accessibility tree
      java.util.List<AXNode> getPartialAXTree()
      Fetches the accessibility node and partial accessibility tree for this DOM node, if it exists.
      java.util.List<AXNode> getPartialAXTree​(java.lang.Integer nodeId, java.lang.Integer backendNodeId, java.lang.String objectId, java.lang.Boolean fetchRelatives)
      Fetches the accessibility node and partial accessibility tree for this DOM node, if it exists.
    • Method Detail

      • disable

        void disable()
        Disables the accessibility domain.
      • enable

        void enable()
        Enables the accessibility domain which causes AXNodeIds to remain consistent between method calls. This turns on accessibility for the page, which can impact performance until accessibility is disabled.
      • getPartialAXTree

        java.util.List<AXNode> getPartialAXTree​(java.lang.Integer nodeId,
                                                java.lang.Integer backendNodeId,
                                                java.lang.String objectId,
                                                java.lang.Boolean fetchRelatives)
        Fetches the accessibility node and partial accessibility tree for this DOM node, if it exists.
        Parameters:
        nodeId - Identifier of the node to get the partial accessibility tree for.
        backendNodeId - Identifier of the backend node to get the partial accessibility tree for.
        objectId - JavaScript object id of the node wrapper to get the partial accessibility tree for.
        fetchRelatives - Whether to fetch this nodes ancestors, siblings and children. Defaults to true.
        Returns:
        The Accessibility.AXNode for this DOM node, if it exists, plus its ancestors, siblings and children, if requested.
      • getFullAXTree

        java.util.List<AXNode> getFullAXTree()
        Fetches the entire accessibility tree
      • getPartialAXTree

        java.util.List<AXNode> getPartialAXTree()
        Fetches the accessibility node and partial accessibility tree for this DOM node, if it exists.
        Returns:
        The Accessibility.AXNode for this DOM node, if it exists, plus its ancestors, siblings and children, if requested.