Class: DiscussionForum

Inherits:
BasePage
  • Object
show all
Includes:
JForumsResources
Defined in:
lib/sambal-cle/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

Instance Method Details

#new_topicObject

Clicks the New Topic button, then instantiates the NewTopic class



108
109
110
111
112
# File 'lib/sambal-cle/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/sambal-cle/page_objects/jforums.rb', line 116

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