Module: TopicPageMethods

Defined in:
lib/kuali-sakai-common-lib/forums.rb

Instance Method Summary collapse

Instance Method Details

#display_entire_messageObject



112
113
114
115
# File 'lib/kuali-sakai-common-lib/forums.rb', line 112

def display_entire_message
  frm.link(:text=>"Display Entire Message").click
  TopicPage.new(@browser)
end

#open_message(message_title) ⇒ Object



107
108
109
110
# File 'lib/kuali-sakai-common-lib/forums.rb', line 107

def open_message(message_title)
  frm.div(:class=>"portletBody").link(:text=>message_title).click
  ViewForumThread.new(@browser)
end

#post_new_threadObject



93
94
95
96
# File 'lib/kuali-sakai-common-lib/forums.rb', line 93

def post_new_thread
  frm.link(:text=>"Post New Thread").click
  ComposeForumMessage.new(@browser)
end

#thread_titlesObject



98
99
100
101
102
103
104
105
# File 'lib/kuali-sakai-common-lib/forums.rb', line 98

def thread_titles
  titles = []
  message_table = frm.table(:id=>"msgForum:messagesInHierDataTable")
  1.upto(message_table.rows.size-1) do |x|
    titles << message_table[x][1].span(:class=>"firstChild").link(:index=>0).text
  end
  return titles
end