Module: Uia::Patterns::Table

Defined in:
lib/uia/patterns/table.rb

Defined Under Namespace

Modules: Row

Instance Method Summary collapse

Instance Method Details

#column_countObject



14
15
16
# File 'lib/uia/patterns/table.rb', line 14

def column_count
  table_info.column_count
end

#headersObject



18
19
20
# File 'lib/uia/patterns/table.rb', line 18

def headers
  Library.table_headers @element
end

#row_at(index) ⇒ Object



22
23
24
# File 'lib/uia/patterns/table.rb', line 22

def row_at(index)
  Library.table_row(@element, index).extend Row
end

#row_countObject



10
11
12
# File 'lib/uia/patterns/table.rb', line 10

def row_count
  table_info.row_count
end

#rowsObject



26
27
28
# File 'lib/uia/patterns/table.rb', line 26

def rows
  find_all(control_type: :data_item).each { |e| e.extend Row }
end