Class: PrivateMessages
- Inherits:
-
JForumsBase
- Object
- PageFactory
- BasePage
- JForumsBase
- PrivateMessages
- 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
-
#pm_subjects ⇒ Object
Collects all subject text strings of the listed private messages and returns them in an Array.
Methods inherited from JForumsBase
Methods inherited from BasePage
basic_page_elements, button, damballa, frame_element, link
Instance Method Details
#pm_subjects ⇒ Object
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 |