Class: ExploreAll

Inherits:
Object
  • Object
show all
Includes:
GlobalMethods, HeaderFooterBar, LeftMenuBarSearch, ListCollections, ListContent, ListGroups, ListPeople, ListProjects, ListWidget, PageObject, SearchBar
Defined in:
lib/sakai-oae-test-api/page_classes.rb

Overview

Page Object and methods for the SEARCH ALL TYPES page NOT the “Browse All Categories” page!

Instance Method Summary collapse

Methods included from SearchBar

#search_for=

Methods included from PageObject

#method_missing, #name_li, #name_link

Methods included from ListProjects

#open_research

Methods included from ListPeople

#add_contact, #addable?, #remove, #send_message_to

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 ListContent

#add_to_library, #comments_count, #content_description, #content_owner, #content_tags, #content_type, #delete, #search_by_tag, #share, #thumbnail, #used_in_count, #view_owner_of

Methods included from ListWidget

#last_updated, #results_list

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

#results_headerObject

Returns the results header title (the text prior to the count of the results returned)



467
468
469
470
471
# File 'lib/sakai-oae-test-api/page_classes.rb', line 467

def results_header
  top = self.div(:class=>"searchall_content_main")
  top.div(:id=>"results_header").span.text =~ /^.+(?=.\()/
  $~.to_s
end