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
- #add_attachments ⇒ Object
- #description=(text) ⇒ Object
- #editor ⇒ Object
- #save ⇒ Object
- #save_and_add ⇒ Object
Instance Method Details
#add_attachments ⇒ Object
246 247 248 249 |
# File 'lib/kuali-sakai-common-lib/forums.rb', line 246 def frm.(: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 |
#editor ⇒ Object
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 |
#save ⇒ Object
228 229 230 231 |
# File 'lib/kuali-sakai-common-lib/forums.rb', line 228 def save frm.(:value=>"Save").click Forums.new(@browser) end |
#save_and_add ⇒ Object
233 234 235 236 |
# File 'lib/kuali-sakai-common-lib/forums.rb', line 233 def save_and_add frm.(:value=>"Save Settings & Add Topic").click AddEditTopic.new(@browser) end |