Class: AssignmentAdd

Inherits:
AssignmentsBase show all
Includes:
FCKEditor
Defined in:
lib/sakai-cle-test-api/page_objects/assignments.rb

Overview

The page where you create a new assignment

Instance Method Summary collapse

Methods included from FCKEditor

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

Methods inherited from AssignmentsBase

listview_elements, menu_elements

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

#instructions=(instructions) ⇒ Object

Sends the specified text to the text box in the FCKEditor on the page.



62
63
64
65
# File 'lib/sakai-cle-test-api/page_objects/assignments.rb', line 62

def instructions=(instructions)
  editor.td(:id, "xEditingArea").frame(:index=>0).send_keys([:command, 'a'], :backspace)
  editor.td(:id, "xEditingArea").frame(:index=>0).send_keys(instructions)
end