Class: CreateResearch
- Inherits:
-
Object
- Object
- CreateResearch
- 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
-
#use_research_project_template ⇒ Object
Clicks the button for using the Research Project template, waits for the page to load, then returns the CreateGroups class object.
-
#use_research_support_group_template ⇒ Object
Clicks the button for using the Research Support Group template, waits for the page to load, then returns the CreateGroups class object.
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_template ⇒ Object
Clicks the button for using the Research Project template, waits for the page to load, then returns the CreateGroups class object.
434 435 436 437 438 |
# File 'lib/sakai-oae-test-api/page_classes.rb', line 434 def use_research_project_template self.div(:class=>"selecttemplate_template_large").(:text=>"Use this template").click self.wait_until { self.text.include? "Suggested URL:" } CreateGroups.new @browser end |
#use_research_support_group_template ⇒ Object
Clicks the button for using the Research Support Group template, waits for the page to load, then returns the CreateGroups class object.
442 443 444 445 446 |
# File 'lib/sakai-oae-test-api/page_classes.rb', line 442 def use_research_support_group_template self.div(:class=>"selecttemplate_template_small selecttemplate_template_right").(:text=>"Use this template").click self.wait_until { self.text.include? "Suggested URL:" } CreateGroups.new @browser end |