Class: DiscussionMemberListing

Inherits:
JForumsBase show all
Defined in:
lib/sambal-cle/page_objects/jforums.rb

Overview

The List of Members of a Site’s Discussion Forums

Instance Method Summary collapse

Methods inherited from JForumsBase

forums_page_elements

Methods inherited from BasePage

basic_page_elements, button, damballa, frame_element, link

Instance Method Details

#name_present?(name) ⇒ Boolean

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

Returns:

  • (Boolean)


218
219
220
221
222
223
# File 'lib/sambal-cle/page_objects/jforums.rb', line 218

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