Class: DiscussionForum

Inherits:
JForumsBase show all
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 inherited from JForumsBase

forums_page_elements

Methods inherited from BasePage

basic_page_elements, button, damballa, frame_element, link

Instance Method Details

#new_topicObject

Clicks the New Topic button, then instantiates the NewTopic class



62
63
64
65
# File 'lib/sambal-cle/page_objects/jforums.rb', line 62

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

#open_topic(topic_title) ⇒ Object

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



68
69
70
# File 'lib/sambal-cle/page_objects/jforums.rb', line 68

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