Sha256: 713250e49975298fb7c7ccf50fbe436c964ece2e92f8e54b9a006a1a7e78122b
Contents?: true
Size: 774 Bytes
Versions: 2
Compression:
Stored size: 774 Bytes
Contents
class Capybara::Queries::SelectorQuery < Capybara::Queries::BaseQuery # @api private def resolve_for(node, exact = nil) node.synchronize do children = if selector.format == :css node.find_css(css) elsif selector.format == :xpath node.find_xpath(xpath(exact)) else node.find_custom(selector.format, @expression) end.map do |child| if node.is_a?(Capybara::Node::Base) Capybara::Node::Element.new(node.session, child, node, self) else Capybara::Node::Simple.new(child) end end Capybara::Result.new(children, self) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
appium_capybara-1.9.0 | lib/appium_capybara/ext/selector_query_ext.rb |
appium_capybara-1.8.1 | lib/appium_capybara/ext/selector_query_ext.rb |