Class: TopicPage
- Defined in:
- lib/sakai-cle-test-api/page_objects/forums.rb
Instance Method Summary collapse
- #display_entire_message ⇒ Object
- #open_message(message_title) ⇒ Object
- #post_new_thread ⇒ Object
- #thread_titles ⇒ Object
Methods inherited from BasePage
basic_page_elements, frame_element
Methods inherited from PageMaker
element, expected_element, expected_title, #initialize, #method_missing, page_url
Constructor Details
This class inherits a constructor from PageMaker
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class PageMaker
Instance Method Details
#display_entire_message ⇒ Object
109 110 111 112 |
# File 'lib/sakai-cle-test-api/page_objects/forums.rb', line 109 def frm.link(:text=>"Display Entire Message").click TopicPage.new(@browser) end |
#open_message(message_title) ⇒ Object
104 105 106 107 |
# File 'lib/sakai-cle-test-api/page_objects/forums.rb', line 104 def () frm.div(:class=>"portletBody").link(:text=>).click ViewForumThread.new(@browser) end |
#post_new_thread ⇒ Object
90 91 92 93 |
# File 'lib/sakai-cle-test-api/page_objects/forums.rb', line 90 def post_new_thread frm.link(:text=>"Post New Thread").click ComposeForumMessage.new(@browser) end |
#thread_titles ⇒ Object
95 96 97 98 99 100 101 102 |
# File 'lib/sakai-cle-test-api/page_objects/forums.rb', line 95 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 |