Class: DiscussionMemberListing

Inherits:
BasePage show all
Includes:
JForumsResources
Defined in:
lib/sakai-cle-test-api/page_objects/jforums.rb

Overview

The List of Members of a Site’s Discussion Forums

Instance Method Summary collapse

Methods included from JForumsResources

#discussion_home, #manage, #member_listing, #my_bookmarks, #my_profile, #private_messages, #search

Methods inherited from BasePage

basic_page_elements, frame_element

Methods inherited from PageMaker

element, expected_element, expected_title, #initialize, #method_missing, page_url

Constructor Details

This class inherits a constructor from PageMaker

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class PageMaker

Instance Method Details

#name_present?(name) ⇒ Boolean

Checks if the specified Member name appears in the member listing.

Returns:

  • (Boolean)


333
334
335
336
337
338
# File 'lib/sakai-cle-test-api/page_objects/jforums.rb', line 333

def name_present?(name)
  member_links = frm.links.find_all { |link| link.href=~/user.profile/ }
  member_names = []
  member_links.each { |link| member_names << link.text }
  member_names.include?(name)
end