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, frame_element

Instance Method Details

#backObject



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

def back
  frm.button(:value=>"Back").click
  Roster.new(@browser)
end

#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.



62
63
64
65
66
67
68
# File 'lib/sambal-cle/page_objects/rosters.rb', line 62

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.



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

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