Class: ExploreCourses
- Inherits:
-
Object
- Object
- ExploreCourses
- Includes:
- GlobalMethods, HeaderFooterBar, LeftMenuBarSearch, ListGroups, ListWidget, PageObject, SearchBar
- Defined in:
- lib/sakai-oae-test-api/page_classes.rb
Overview
Methods related to the page for searching Courses.
Instance Method Summary collapse
-
#courses_count ⇒ Object
TODO - Describe method.
-
#filter_by=(selection) ⇒ Object
Selects the specified item in the ‘Filter by’ field.
-
#results_header ⇒ Object
Returns the results header title (the text prior to the count of the results returned).
-
#sort_by=(selection) ⇒ Object
Selects the specified item in the ‘Sort by’ field.
Methods included from SearchBar
Methods included from PageObject
#method_missing, #name_li, #name_link
Methods included from ListGroups
#add_group, #check_group, #content_item_count, #group_type, #join_button_for, #message_button, #message_course, #participants_count, #remove_membership, #remove_membership_button, #view_group_participants
Methods included from ListWidget
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 GlobalMethods
#close_notification, #menu_item, #open_page, #view_person
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class PageObject
Instance Method Details
#courses_count ⇒ Object
TODO - Describe method
552 553 554 |
# File 'lib/sakai-oae-test-api/page_classes.rb', line 552 def courses_count #TODO - Write method end |
#filter_by=(selection) ⇒ Object
Selects the specified item in the ‘Filter by’ field. Waits for Ajax calls to drop to zero.
558 559 560 561 |
# File 'lib/sakai-oae-test-api/page_classes.rb', line 558 def filter_by=(selection) self.select(:id=>"facted_select").select(selection) self.wait_for_ajax(2) end |
#results_header ⇒ Object
Returns the results header title (the text prior to the count of the results returned)
546 547 548 549 |
# File 'lib/sakai-oae-test-api/page_classes.rb', line 546 def results_header top = self.div(:id=>"searchgroups_widget", :index=>1) top.div(:id=>"results_header").span(:id=>"searchgroups_type_title").text end |
#sort_by=(selection) ⇒ Object
Selects the specified item in the ‘Sort by’ field. Waits for any Ajax calls to finish.
565 566 567 568 |
# File 'lib/sakai-oae-test-api/page_classes.rb', line 565 def sort_by=(selection) self.div(:class=>"s3d-search-sort").select().select(selection) self.wait_for_ajax(2) end |