module FindTableRow
Public Instance Methods
find_table_cell(column_index_or_name, *column_expectations)
click to toggle source
# File lib/rspec_tapas/locators/find_table_row.rb, line 9 def find_table_cell(column_index_or_name, *column_expectations) expectations_hash = column_expectations.extract_options! finder = TableRowFinder.new(self, expectations_hash) row = finder.call column_index = finder.header_key_to_column_index(column_index_or_name) row.find(:xpath, "./td[#{column_index + 1}]") end
find_table_row(*column_expectations)
click to toggle source
# File lib/rspec_tapas/locators/find_table_row.rb, line 4 def find_table_row(*column_expectations) expectations_hash = column_expectations.extract_options! TableRowFinder.call(self, expectations_hash) end