Class: PageObject::Elements::TableRow

Inherits:
Element
  • Object
show all
Includes:
Enumerable
Defined in:
lib/page-object/elements/table_row.rb

Instance Attribute Summary

Attributes inherited from Element

#element

Instance Method Summary collapse

Methods inherited from Element

#class_name, #click, #disabled?, #enabled?, #inspect, #method_missing, plural_form, selenium_identifier_for, #style, watir_identifier_for

Methods included from NestedElements

included

Constructor Details

#initialize(element, platform) ⇒ TableRow

Returns a new instance of TableRow.



7
8
9
10
# File 'lib/page-object/elements/table_row.rb', line 7

def initialize(element, platform)
  @element = element
  include_platform_for platform
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class PageObject::Elements::Element

Instance Method Details

#eachPageObject::Elements::TableCell

iterator that yields with a PageObject::Elements::TableCell



17
18
19
20
21
# File 'lib/page-object/elements/table_row.rb', line 17

def each
  for index in 1..self.columns do
    yield self[index-1]
  end
end