Class: ManageDiscussions

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

Overview

The Manage Discussions page in 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

#forum_titlesObject

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_forumsObject

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