lib/watir/locators/cell/selector_builder.rb in watir-6.14.0 vs lib/watir/locators/cell/selector_builder.rb in watir-6.15.0

- old
+ new

@@ -1,22 +1,8 @@ module Watir module Locators class Cell class SelectorBuilder < Element::SelectorBuilder - def build_wd_selector(selectors) - return if selectors.values.any? { |e| e.is_a? Regexp } - - expressions = %w[./th ./td] - attr_expr = xpath_builder.attribute_expression(nil, selectors) - - expressions.map! { |e| "#{e}[#{attr_expr}]" } unless attr_expr.empty? - - xpath = expressions.join(' | ') - - p build_wd_selector: xpath if $DEBUG - - [:xpath, xpath] - end end end end end