Class: EditForum

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

#add_attachmentsObject



231
232
233
234
# File 'lib/sakai-cle-test-api/page_objects/forums.rb', line 231

def add_attachments
  frm.button(:value=>/attachments/).click
  ForumsAddAttachments.new(@browser)
end

#description=(text) ⇒ Object



227
228
229
# File 'lib/sakai-cle-test-api/page_objects/forums.rb', line 227

def description=(text)
  editor.send_keys(text)
end

#editorObject



223
224
225
# File 'lib/sakai-cle-test-api/page_objects/forums.rb', line 223

def editor
  frm.div(:class=>"portletBody").frame(:id, "revise:df_compose_description_inputRichText___Frame").td(:id, "xEditingArea").frame(:index=>0)
end

#saveObject



213
214
215
216
# File 'lib/sakai-cle-test-api/page_objects/forums.rb', line 213

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

#save_and_addObject



218
219
220
221
# File 'lib/sakai-cle-test-api/page_objects/forums.rb', line 218

def save_and_add
  frm.button(:value=>"Save Settings & Add Topic").click
  AddEditTopic.new(@browser)
end