lib/testcentricity_web/web_elements/table.rb
# Populate the specified row of this table object with the associated data from a Hash passed as an
# argument. Data values must be in the form of a String for textfield and select list controls. For checkbox
# and radio buttons, data must either be a Boolean or a String that evaluates to a Boolean value (Yes, No, 1,
# 0, true, false)
#
# @param data [Hash] column numbers and associated data to be entered
# @example
#   data = { 1 => 'Dr.',
#            2 => 'Evangeline',
#            3 => 'Devereaux',
#            4 => 'MD',
#            5 => 'Family Practice'
#          }
#   clinicians_table.populate_table_row(3, data)
#
Populate the specified row of this table object with the associated data from a Hash passed as an
argument. Data values must be in the form of a String for textfield and select list controls. For checkbox
and radio buttons, data must either be a Boolean or a String that evaluates to a Boolean value (Yes, No, 1,
0, true, false)
Populate the specified row of this table object with the associated data from a Hash passed as an argument . Data values must be in the form of a String for textfield and select list controls . For checkbox and radio buttons data must either be a Boolean or a String that evaluates to a Boolean value ( Yes No 1 0 true false )
def populate_table_row(row, data)
      wait_until_exists(2)
      data.each do |column, data_param|
        unless data_param.blank?
          if data_param == '!DELETE'
            set_table_cell(row, column, '')
          else
            set_table_cell(row, column, data_param)
          end
        end
      end
    end
def populate_table_row ( row , data ) wait_until_exists ( 2 ) data . each do | column , data_param | unless data_param . blank? if data_param == '!DELETE' set_table_cell ( row , column , '' ) else set_table_cell ( row , column , data_param ) end end end end
Populate the specified row of this table object with the associated data from a Hash passed as an
argument.
Populate the specified row of this table object with the associated data from a Hash passed as an argument .
row
data
column numbers and associated data to be entered
column numbers and associated data to be entered
example
None