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