Class: CreateResearch

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 for Creating a Research Project

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_research_project_templateObject

Clicks the button for using the Research Project template, waits for the page to load, then returns the CreateGroups class object.



450
451
452
453
454
# File 'lib/sakai-oae-test-api/page_classes.rb', line 450

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

#use_research_support_group_templateObject

Clicks the button for using the Research Support Group template, waits for the page to load, then returns the CreateGroups class object.



458
459
460
461
462
# File 'lib/sakai-oae-test-api/page_classes.rb', line 458

def use_research_support_group_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