Class: OrganizeForums

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

Instance Method Summary collapse

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

#forum(index) ⇒ Object

These are set to so that the user does not have to start the list at zero…



200
201
202
# File 'lib/sakai-cle-test-api/page_objects/forums.rb', line 200

def forum(index)
  frm.select(:id, "revise:forums:#{index.to_i - 1}:forumIndex")
end

#saveObject



193
194
195
196
# File 'lib/sakai-cle-test-api/page_objects/forums.rb', line 193

def save
  frm.button(:value=>"Save").click
  Forums.new(@browser)
end

#topic(forumindex, topicindex) ⇒ Object



204
205
206
# File 'lib/sakai-cle-test-api/page_objects/forums.rb', line 204

def topic(forumindex, topicindex)
  frm.select(:id, "revise:forums:#{forumindex.to_i - 1}:topics:#{topicindex.to_i - 1}:topicIndex")
end