Module: TopicPageMethods
- Defined in:
- lib/kuali-sakai-common-lib/forums.rb
Instance Method Summary collapse
- #display_entire_message ⇒ Object
- #open_message(message_title) ⇒ Object
- #post_new_thread ⇒ Object
- #thread_titles ⇒ Object
Instance Method Details
#display_entire_message ⇒ Object
112 113 114 115 |
# File 'lib/kuali-sakai-common-lib/forums.rb', line 112 def 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 () frm.div(:class=>"portletBody").link(:text=>).click ViewForumThread.new(@browser) end |
#post_new_thread ⇒ Object
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_titles ⇒ Object
98 99 100 101 102 103 104 105 |
# File 'lib/kuali-sakai-common-lib/forums.rb', line 98 def thread_titles titles = [] = frm.table(:id=>"msgForum:messagesInHierDataTable") 1.upto(.rows.size-1) do |x| titles << [x][1].span(:class=>"firstChild").link(:index=>0).text end return titles end |