vendor/gems/gems/firewatir-1.2.1/htmlelements.rb
#
# Description:
#   Gets the table as a 2 dimensional array. Dont expect too much if there are nested tables, colspan etc.
#
# Output:
#   2D array with rows and column text of the table.
#

Gets the table as a 2 dimensional array. Dont expect too much if there are nested tables, colspan etc.

2D array with rows and column text of the table.
Gets the table as a 2 dimensional array . Dont expect too much if there are nested tables colspan etc . 2D array with rows and column text of the table .
def to_a
        assert_exists
        y = []
        table_rows = rows
        for row in table_rows
            x = []
            row.each do |td|
                x << td.to_s.strip
            end
            y << x
        end
        return y
    end
def to_a assert_exists y = [ ] table_rows = rows for row in table_rows x = [ ] row . each do | td | x << td . to_s . strip end y << x end return y end
Description:
Gets the table as a 2 dimensional array.
Description : Gets the table as a 2 dimensional array .