Class: TopicPage

Inherits:
BasePage show all
Defined in:
lib/sambal-cle/page_objects/forums.rb

Instance Method Summary collapse

Methods inherited from BasePage

basic_page_elements, button, damballa, frame_element, link

Instance Method Details

#open_message(message_title) ⇒ Object

ViewForumThread



91
92
93
# File 'lib/sambal-cle/page_objects/forums.rb', line 91

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

#thread_titlesObject



81
82
83
84
85
86
87
88
# File 'lib/sambal-cle/page_objects/forums.rb', line 81

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