Sha256: 13f86756139e5192ff92691f0cfdad9d6958364c16af3286b49b30f8ac8afd72
Contents?: true
Size: 533 Bytes
Versions: 2
Compression:
Stored size: 533 Bytes
Contents
module Watir class TableRowLocator < ElementLocator def locate_all find_all_by_multiple end private def build_xpath(selectors) return if selectors.values.any? { |e| e.kind_of? Regexp } selectors.delete(:tag_name) || raise("internal error: no tag_name?!") attr_expr = attribute_expression(selectors) xpath = "./*/child::tr" xpath << "[#{attr_expr}]" unless attr_expr.empty? p :build_xpath => xpath if $DEBUG xpath end end # TableRowLocator end # Watir
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
watir-webdriver-0.0.9 | lib/watir-webdriver/locators/table_row_locator.rb |
watir-webdriver-0.0.8 | lib/watir-webdriver/locators/table_row_locator.rb |