Class: CreateNewAccount
- Inherits:
-
Object
- Object
- CreateNewAccount
- Includes:
- HeaderFooterBar, PageObject
- Defined in:
- lib/sakai-oae-test-api/page_classes.rb
Overview
Methods related to the page for creating a new user account
Instance Method Summary collapse
-
#create_account ⇒ Object
Clicks the ‘create account’ button, waits for the dashboard, then returns the MyDashboard class object.
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
Methods included from PageObject
#method_missing, #name_li, #name_link
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class PageObject
Instance Method Details
#create_account ⇒ Object
Clicks the ‘create account’ button, waits for the dashboard, then returns the MyDashboard class object.
306 307 308 309 310 311 312 313 |
# File 'lib/sakai-oae-test-api/page_classes.rb', line 306 def create_account self.back_to_top self. sleep 4 self.wait_until { self.text.include? "My dashboard" } MyDashboard.new @browser #self.class.class_eval { include OurAgreementPopUp } end |