lib/testcentricity_web/web_elements/table.rb
def find_in_table_row(row, search_value)
      (1..get_column_count).each do |column|
        return column if get_table_cell(row, column) == search_value
      end
      nil
    end
# Search for the specified text value in the specified row of the table object.
# Returns the number of the first column that contains the search value.
#
# @param row [Integer] row nummber
# @param search_value [String] value to be searched for
# @return [Integer] column number of table cell that contains search value
# @example
#   bom_table.find_in_table_row(4, 'High-speed Framus bolts')
#
Search for the specified text value in the specified row of the table object.
Returns the number of the first column that contains the search value.
Search for the specified text value in the specified row of the table object . Returns the number of the first column that contains the search value .
def find_in_table_row(row, search_value)
      (1..get_column_count).each do |column|
        return column if get_table_cell(row, column) == search_value
      end
      nil
    end
def find_in_table_row ( row , search_value ) ( 1 .. get_column_count ) . each do | column | return column if get_table_cell ( row , column ) == search_value end nil end
Search for the specified text value in the specified row of the table object.
Search for the specified text value in the specified row of the table object .
column number of table cell that contains search value
column number of table cell that contains search value
Integer
row
None
search_value
value to be searched for
value to be searched for
example
bom_table.find_in_table_row(4, 'High-speed Framus bolts')
bom_table . find_in_table_row ( 4 ' High - speed Framus bolts ' )