Class: CreateCourses

Inherits:
Object
  • Object
show all
Includes:
HeaderFooterBar, LeftMenuBarCreateWorlds, PageObject
Defined in:
lib/sakai-oae-test-api/page_classes.rb

Overview

Methods related to the page that appears when you are creating a new Course.

Instance Method Summary collapse

Methods included from PageObject

#method_missing, #name_li, #name_link

Methods included from HeaderFooterBar

#acknowledgements, #add_collection, #add_content, #browse_footer, #browse_footer_link, #change_language, #change_location, #click_link, #explore_footer, #explore_footer_link, #login, #messages_container, #my_account, #sign_out, #sign_up, #toggle_collector, #user_agreement

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class PageObject

Instance Method Details

#use_basic_templateObject

Clicks the button to use the basic template, waits for the new page to load, then returns the CreateGroups class object.



335
336
337
338
339
# File 'lib/sakai-oae-test-api/page_classes.rb', line 335

def use_basic_template
  self.div(:class=>"selecttemplate_template_small selecttemplate_template_right").button(:text=>"Use this template").click
  self.wait_until { self.text.include? "Suggested URL:" }
  CreateGroups.new @browser
end

#use_math_templateObject

Clicks the button for using the math template, then returns the MathTemplate class object.



327
328
329
330
# File 'lib/sakai-oae-test-api/page_classes.rb', line 327

def use_math_template
  self.div(:class=>"selecttemplate_template_large").button(:text=>"Use this template").click
  # TODO - Class goes here
end