Module: EditForumMethods

Includes:
PageObject
Defined in:
lib/kuali-sakai-common-lib/forums.rb

Overview

The page for creating/editing a forum in a Site

Instance Method Summary collapse

Instance Method Details

#add_attachmentsObject



246
247
248
249
# File 'lib/kuali-sakai-common-lib/forums.rb', line 246

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

#description=(text) ⇒ Object



242
243
244
# File 'lib/kuali-sakai-common-lib/forums.rb', line 242

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

#editorObject



238
239
240
# File 'lib/kuali-sakai-common-lib/forums.rb', line 238

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

#saveObject



228
229
230
231
# File 'lib/kuali-sakai-common-lib/forums.rb', line 228

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

#save_and_addObject



233
234
235
236
# File 'lib/kuali-sakai-common-lib/forums.rb', line 233

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