Class: AddEditContentSection
- Inherits:
-
LessonsBase
- Object
- PageMaker
- BasePage
- LessonsBase
- AddEditContentSection
- Includes:
- FCKEditor
- Defined in:
- lib/sakai-cle-test-api/page_objects/lessons.rb
Overview
Page for adding a section to a Lesson.
Instance Method Summary collapse
- #add_content=(text) ⇒ Object
-
#clear_content ⇒ Object
FIXME - This is an extra method now that we have the FCKEditor module.
Methods included from FCKEditor
#enter_source_text, #entity_picker, #get_source_text, #select_all, #source, #source_field
Methods inherited from LessonsBase
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_content=(text) ⇒ Object
278 279 280 |
# File 'lib/sakai-cle-test-api/page_objects/lessons.rb', line 278 def add_content=(text) content_editor.td(:id, "xEditingArea").frame(:index=>0).send_keys(text) end |
#clear_content ⇒ Object
FIXME - This is an extra method now that we have the FCKEditor module
282 283 284 285 |
# File 'lib/sakai-cle-test-api/page_objects/lessons.rb', line 282 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 |