Class: EditProfile

Inherits:
BasePage show all
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

#picture_file(filename, filepath = "") ⇒ Object



40
41
42
# File 'lib/sakai-cle-test-api/page_objects/profile.rb', line 40

def picture_file(filename, filepath="")
  frm.file_field(:name=>"editProfileForm:uploadFile.uploadId").set(filepath + filename)
end

#saveObject



35
36
37
38
# File 'lib/sakai-cle-test-api/page_objects/profile.rb', line 35

def save
  frm.button(:value=>"Save").click
  Profile.new(@browser)
end