lib/testcentricity_web/web_elements/table.rb
def click_header_column(column)
      column_count = get_column_count
      raise "Column #{column} exceeds number of columns (#{column_count}) in table header #{object_ref_message}" if column > column_count
      case @locator_type
      when :xpath
        set_alt_locator("#{@locator}//#{@table_header}/#{@header_row}/#{@header_column}[#{column}]")
      when :css
        set_alt_locator("#{@locator} #{@table_header} > #{@header_row} > #{@header_column}:nth-of-type(#{column})")
      end
      click if exists?
      clear_alt_locator
    end
# Click in the specified column header in a table object.
#
# @param column [Integer] column number
# @example
#   list_table.click_header_column(3)
#
Click in the specified column header in a table object.
Click in the specified column header in a table object .
def click_header_column(column)
      column_count = get_column_count
      raise "Column #{column} exceeds number of columns (#{column_count}) in table header #{object_ref_message}" if column > column_count
      case @locator_type
      when :xpath
        set_alt_locator("#{@locator}//#{@table_header}/#{@header_row}/#{@header_column}[#{column}]")
      when :css
        set_alt_locator("#{@locator} #{@table_header} > #{@header_row} > #{@header_column}:nth-of-type(#{column})")
      end
      click if exists?
      clear_alt_locator
    end
def click_header_column ( column ) column_count = get_column_count raise "Column #{column} exceeds number of columns (#{column_count}) in table header #{object_ref_message}" if column > column_count case @locator_type when :xpath set_alt_locator ( "#{@locator}//#{@table_header}/#{@header_row}/#{@header_column}[#{column}]" ) when :css set_alt_locator ( "#{@locator} #{@table_header} > #{@header_row} > #{@header_column}:nth-of-type(#{column})" ) end click if exists? clear_alt_locator end
Click in the specified column header in a table object.
Click in the specified column header in a table object .
column
None
example
None