Class: LoginPage
- Inherits:
-
Object
- Object
- LoginPage
- Includes:
- GlobalMethods, HeaderFooterBar, PageObject
- Defined in:
- lib/sakai-oae-test-api/page_classes.rb
Overview
The Login page for OAE.
Instance Method Summary collapse
-
#featured_content_list ⇒ Object
Returns an array containing the titles of the items in the Featured Content area of the page.
-
#recent_activity_list ⇒ Object
Returns an array containing the titles of the items displayed in the “Recent activity” box on the login page.
Methods included from GlobalMethods
#close_notification, #menu_item, #open_page, #view_person
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
#featured_content_list ⇒ Object
Returns an array containing the titles of the items in the Featured Content area of the page.
27 28 29 30 31 32 33 |
# File 'lib/sakai-oae-test-api/page_classes.rb', line 27 def featured_content_list list = [] self.div(:id=>"featuredcontent_content_container").links(:class=>/featuredcontent_content_title/).each do |link| list << link.text end return list end |
#recent_activity_list ⇒ Object
Returns an array containing the titles of the items displayed in the “Recent activity” box on the login page.
17 18 19 20 21 22 23 |
# File 'lib/sakai-oae-test-api/page_classes.rb', line 17 def recent_activity_list list = [] self.div(:id=>"recentactivity_activity_container").links(:class=>"recentactivity_activity_item_title recentactivity_activity_item_text s3d-regular-links s3d-bold").each do |link| list << link.text end return list.uniq! end |