Class: RosterProfileView

Inherits:
BasePage
  • Object
show all
Defined in:
lib/sambal-cle/page_objects/rosters.rb

Instance Method Summary collapse

Methods inherited from BasePage

basic_page_elements, button, damballa, frame_element, link

Instance Method Details

#personal_informationObject

Returns a hash containing the contents of the Personal Information table on the page, with the keys being the row headers and the values being the row’s data contents.



52
53
54
55
56
57
58
# File 'lib/sambal-cle/page_objects/rosters.rb', line 52

def personal_information
  hash = {}
  frm.table(:class=>"chefEditItem", :index=>1).rows.each do |row|
    hash.store(row[0].text, row[1].text)
  end
  return hash
end

#public_informationObject

Returns a hash containing the contents of the Public Information table on the page, with the keys being the row headers and the values being the row’s data contents.



41
42
43
44
45
46
47
# File 'lib/sambal-cle/page_objects/rosters.rb', line 41

def public_information
  hash = {}
  frm.table(:class=>"chefEditItem", :index=>0).rows.each do |row|
    hash.store(row[0].text, row[1].text)
  end
  return hash
end