Class: PageObjectWrapper::Table
- Inherits:
-
Element
- Object
- DslElement
- DslElementWithLocator
- Element
- PageObjectWrapper::Table
- 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
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(label) ⇒ Table
constructor
A new instance of Table.
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
#type ⇒ Object (readonly)
Returns the value of attribute type.
5 6 7 |
# File 'lib/page_object_wrapper/Table.rb', line 5 def type @type end |