Class: AddEditSiteProperties

Inherits:
BasePage show all
Defined in:
lib/sakai-cle-test-api/page_objects/sites.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

#doneObject

Clicks the Done button, then instantiates the EditSiteInfo class.



241
242
243
244
# File 'lib/sakai-cle-test-api/page_objects/sites.rb', line 241

def done
  frm.button(:value=>"Done").click
  EditSiteInfo.new(@browser)
end

#new_propertyObject

Clicks the New Property button



234
235
236
237
# File 'lib/sakai-cle-test-api/page_objects/sites.rb', line 234

def new_property
  frm.button(:value=>"New Property").click
  #Class.new(@browser)
end

#saveObject

Clicks the Save button, then instantiates the Sites page class.



248
249
250
251
# File 'lib/sakai-cle-test-api/page_objects/sites.rb', line 248

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