Class: ManageDiscussions
- Inherits:
-
JForumsBase
- Object
- PageFactory
- BasePage
- JForumsBase
- ManageDiscussions
- Defined in:
- lib/sambal-cle/page_objects/jforums.rb
Overview
The Manage Discussions page in Discussion Forums.
Instance Method Summary collapse
-
#forum_titles ⇒ Object
Creates and returns an array of forum titles which can be used for verification.
-
#manage_forums ⇒ Object
Clicks the Manage Forums link, then instantiates the ManageForums Class.
Methods inherited from JForumsBase
Methods inherited from BasePage
basic_page_elements, button, damballa, frame_element, link
Instance Method Details
#forum_titles ⇒ Object
Creates and returns an array of forum titles which can be used for verification
102 103 104 105 106 107 |
# File 'lib/sambal-cle/page_objects/jforums.rb', line 102 def forum_titles forum_titles = [] forum_links = frm.links.find_all { |link| link.id=="forumEdit"} forum_links.each { |link| forum_titles << link.text } return forum_titles end |
#manage_forums ⇒ Object
Clicks the Manage Forums link, then instantiates the ManageForums Class.
96 97 98 |
# File 'lib/sambal-cle/page_objects/jforums.rb', line 96 def manage_forums frm.link(:text=>"Manage Forums").click end |