Class: RosterProfileView
- Defined in:
- lib/sakai-cle-test-api/page_objects/rosters.rb
Instance Method Summary collapse
- #back ⇒ Object
-
#personal_information ⇒ Object
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.
-
#public_information ⇒ Object
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.
Methods inherited from BasePage
basic_page_elements, frame_element
Methods inherited from PageMaker
element, expected_element, expected_title, #initialize, #method_missing, page_url
Constructor Details
This class inherits a constructor from PageMaker
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class PageMaker
Instance Method Details
#back ⇒ Object
43 44 45 46 |
# File 'lib/sakai-cle-test-api/page_objects/rosters.rb', line 43 def back frm.(:value=>"Back").click Roster.new(@browser) end |
#personal_information ⇒ Object
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/sakai-cle-test-api/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_information ⇒ Object
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/sakai-cle-test-api/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 |