Class: CourseSectionInfo

Inherits:
SiteSetupBase show all
Defined in:
lib/sakai-cle-test-api/page_objects/site_setup.rb

Overview

The Course/Section Information page that appears when creating a new Site

Instance Method Summary collapse

Methods inherited from SiteSetupBase

menu_elements

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

#continueObject

Clicks the Continue button, then instantiates the CourseSiteInfo Class.



513
514
515
516
# File 'lib/sakai-cle-test-api/page_objects/site_setup.rb', line 513

def continue
  frm.button(:value=>"Continue").click
  CourseSiteInfo.new(@browser)
end

#doneObject

Clicks the Done button (or the “Done - go to Site” button if it happens to be there), then instantiates the SiteSetup Class.



522
523
524
525
# File 'lib/sakai-cle-test-api/page_objects/site_setup.rb', line 522

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