Class: AddEditContentSection

Inherits:
LessonsBase show all
Includes:
FCKEditor
Defined in:
lib/sambal-cle/page_objects/lessons.rb

Overview

Page for adding a section to a Lesson.

Instance Method Summary collapse

Methods included from FCKEditor

#enter_source_text, #entity_picker, #get_source_text, #prepend, #select_all, #source, #source_field

Methods inherited from LessonsBase

menu_elements

Methods inherited from BasePage

basic_page_elements, button, damballa, frame_element, link

Instance Method Details

#add_content=(text) ⇒ Object



256
257
258
# File 'lib/sambal-cle/page_objects/lessons.rb', line 256

def add_content=(text)
  content_editor.td(:id, "xEditingArea").frame(:index=>0).send_keys(text)
end

#clear_contentObject

FIXME - This is an extra method now that we have the FCKEditor module



260
261
262
263
# File 'lib/sambal-cle/page_objects/lessons.rb', line 260

def clear_content  # FIXME - This is an extra method now that we have the FCKEditor module
  content_editor.div(:title=>"Select All").fire_event("onclick")
  content_editor.send_keys :backspace
end