Class: DiscussionMemberListing
- Inherits:
-
JForumsBase
- Object
- PageFactory
- BasePage
- JForumsBase
- DiscussionMemberListing
- Defined in:
- lib/sambal-cle/page_objects/jforums.rb
Overview
The List of Members of a Site’s Discussion Forums
Instance Method Summary collapse
-
#name_present?(name) ⇒ Boolean
Checks if the specified Member name appears in the member listing.
Methods inherited from JForumsBase
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.
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 |