Class: PageObjectWrapper::Table

Inherits:
Element show all
Defined in:
lib/page_object_wrapper/Table.rb

Constant Summary collapse

DEFAULT_HEADER_COLLUMNS_NUMBER =
100
DEFAULT_HEADER_COLLUMNS_PREFIX =
'column_'

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Element

#menu, #menu_value, #press_action, #press_action_value, #required, #required_value, #type_value

Methods inherited from DslElement

#label_alias, #label_alias_value

Constructor Details

#initialize(label) ⇒ Table



11
12
13
14
15
16
# File 'lib/page_object_wrapper/Table.rb', line 11

def initialize(label)
  super label, 'table'
  h = []
  DEFAULT_HEADER_COLLUMNS_NUMBER.times { |i| h << (DEFAULT_HEADER_COLLUMNS_PREFIX+i.to_s).to_sym }
  @header = h
end

Instance Attribute Details

#typeObject (readonly)

Returns the value of attribute type.



5
6
7
# File 'lib/page_object_wrapper/Table.rb', line 5

def type
  @type
end