Class: PrivateMessages

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

Overview

The page where users go to read their private messages in the 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

#pm_subjectsObject

Collects all subject text strings of the listed private messages and returns them in an Array.



243
244
245
246
247
248
# File 'lib/sambal-cle/page_objects/jforums.rb', line 243

def pm_subjects
  anchor_objects = frm.links.find_all { |link| link.href=~/pm.read.+page/ }
  subjects = []
  anchor_objects.each { |link| subjects << link.text }
  return subjects
end