Class AccessibilityImpl

    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • disable

        public void disable()
        Description copied from interface: Accessibility
        Disables the accessibility domain.
        Specified by:
        disable in interface Accessibility
      • enable

        public void enable()
        Description copied from interface: Accessibility
        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.
        Specified by:
        enable in interface Accessibility
      • getPartialAXTree

        public java.util.List<AXNode> getPartialAXTree()
        Description copied from interface: Accessibility
        Fetches the accessibility node and partial accessibility tree for this DOM node, if it exists.
        Specified by:
        getPartialAXTree in interface Accessibility
        Returns:
        The Accessibility.AXNode for this DOM node, if it exists, plus its ancestors, siblings and children, if requested.
      • getPartialAXTree

        public java.util.List<AXNode> getPartialAXTree​(java.lang.Integer nodeId,
                                                       java.lang.Integer backendNodeId,
                                                       java.lang.String objectId,
                                                       java.lang.Boolean fetchRelatives)
        Description copied from interface: Accessibility
        Fetches the accessibility node and partial accessibility tree for this DOM node, if it exists.
        Specified by:
        getPartialAXTree in interface Accessibility
        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.