class Capybara::Queries::AncestorQuery

def description

def description
  child_query = @child_node && @child_node.instance_variable_get(:@query)
  desc = super
  desc += " that is an ancestor of #{child_query.description}" if child_query
  desc
end

def resolve_for(node, exact = nil)

Other tags:
    Api: - private
def resolve_for(node, exact = nil)
  @child_node = node
  node.synchronize do
    match_results = super(node.session.current_scope, exact)
    node.all(:xpath, XPath.ancestor) { |el| match_results.include?(el) }
  end
end

def valid_keys

def valid_keys
  super - COUNT_KEYS
end