Class: AssignmentAdd

Inherits:
AssignmentsBase show all
Includes:
FCKEditor
Defined in:
lib/sambal-cle/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, #prepend, #select_all, #source, #source_field

Methods inherited from AssignmentsBase

listview_elements, menu_elements

Methods inherited from BasePage

basic_page_elements, button, damballa, frame_element, link

Instance Method Details

#instructions=(instructions) ⇒ Object

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



61
62
63
64
# File 'lib/sambal-cle/page_objects/assignments.rb', line 61

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