Class: MyLibrary

Inherits:
Object
  • Object
show all
Includes:
GlobalMethods, HeaderFooterBar, LeftMenuBarYou, LibraryWidget, ListContent, ListWidget, PageObject
Defined in:
lib/sakai-oae-test-api/page_classes.rb

Overview

Methods related to the User’s My Library page.

Instance Method Summary collapse

Methods included from LibraryWidget

#add_selected_to, #add_to, #check_content, #checkbox, #remove_selected, #search_library_for=, #share_selected, #sort_by=, #uncheck_content

Methods included from PageObject

#method_missing, #name_li, #name_link

Methods included from LeftMenuBarYou

#change_picture, #inbox, #invitations, #my_contacts_count, #my_library_count, #my_messages_lock_icon, #sent, #show_hide_my_messages_tree, #trash, #unread_inbox_count, #unread_invitations_count, #unread_message_count

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

#empty_libraryObject

Defines the div that displays when the library has no contents. Useful for testing whether the library is empty or not.



1195
1196
1197
# File 'lib/sakai-oae-test-api/page_classes.rb', line 1195

def empty_library
  active_div.div(:id=>"mylibrary_empty")
end

#page_titleObject

Returns the text of the Page Title.



1200
1201
1202
# File 'lib/sakai-oae-test-api/page_classes.rb', line 1200

def page_title
  active_div.div(:class=>"s3d-contentpage-title").text
end