Class: Profile
- Defined in:
- lib/sakai-cle-test-api/page_objects/profile.rb
Instance Method Summary collapse
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
#edit_my_profile ⇒ Object
10 11 12 13 |
# File 'lib/sakai-cle-test-api/page_objects/profile.rb', line 10 def edit_my_profile frm.link(:text=>"Edit my Profile").click EditProfile.new(@browser) end |
#email ⇒ Object
25 26 27 |
# File 'lib/sakai-cle-test-api/page_objects/profile.rb', line 25 def email frm.link(:id=>"profileForm:email").text end |
#photo ⇒ Object
20 21 22 23 |
# File 'lib/sakai-cle-test-api/page_objects/profile.rb', line 20 def photo source = frm.image(:id=>"profileForm:image1").src return source.split("/")[-1] end |