Sha256: 34b29345738152b0fd487970006ad3c0f862fb8e16d37dadc714dc606615c516
Contents?: true
Size: 782 Bytes
Versions: 14
Compression:
Stored size: 782 Bytes
Contents
module Watir class ChildRowLocator < ElementLocator def locate_all find_all_by_multiple end private def by_id nil # avoid this end def build_xpath(selectors) return if selectors.values.any? { |e| e.kind_of? Regexp } selectors.delete(:tag_name) || raise("internal error: no tag_name?!") expressions = %w[./tr] unless %w[tbody tfoot thead].include?(@wd.tag_name) expressions += %w[./tbody/tr ./thead/tr ./tfoot/tr] end attr_expr = attribute_expression(selectors) unless attr_expr.empty? expressions.map! { |e| "#{e}[#{attr_expr}]" } end xpath = expressions.join(" | ") p :build_xpath => xpath if $DEBUG xpath end end # ChildRowLocator end # Watir
Version data entries
14 entries across 14 versions & 2 rubygems