Class: DiscussionForum

Inherits:
BasePage show all
Includes:
JForumsResources
Defined in:
lib/sakai-cle-test-api/page_objects/jforums.rb

Overview

The page of a particular Discussion Forum, show the list of Topics in the forum.

Instance Method Summary collapse

Methods included from JForumsResources

#discussion_home, #manage, #member_listing, #my_bookmarks, #my_profile, #private_messages, #search

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

#new_topicObject

Clicks the New Topic button, then instantiates the NewTopic class



108
109
110
111
112
# File 'lib/sakai-cle-test-api/page_objects/jforums.rb', line 108

def new_topic
  frm.image(:alt=>"New Topic").fire_event("onclick")
  frm.frame(:id, "message___Frame").td(:id, "xEditingArea").wait_until_present
  NewTopic.new(@browser)
end

#open_topic(topic_title) ⇒ Object

Clicks the specified Topic Title, then instantiates the ViewTopic Class.



116
117
118
119
# File 'lib/sakai-cle-test-api/page_objects/jforums.rb', line 116

def open_topic(topic_title)
  frm.link(:href=>/posts.list/, :text=>topic_title).click
  ViewTopic.new(@browser)
end