INNER CODE UNIT · Ruby

initialize

rubycdp/ferrum · lib/ferrum/accessibility.rb:18

    def initialize(page)
      @page = page
    end

    #
    # The single non-ignored AXNode for a DOM node, or `nil`.
    #
    # @param [Ferrum::Node] node
    # @return [AXNode, nil]
    #
    def node_for(node)
      partial_tree(node: node).find { |ax_node| !ax_node.ignored? }
    end

    #
    # The partial AX tree for a DOM node.
    #
    # @param [Ferrum::Node] node

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…