Class: AssignmentSubmission
- Includes:
- FCKEditor
- Defined in:
- lib/sakai-cle-test-api/page_objects/assignments.rb
Overview
The page that shows a student’s submitted assignment to an instructor user.
Instance Method Summary collapse
-
#add_attachments ⇒ Object
Clicks the Add Attachments button, then instantiates the AssignmentAttachments Class.
-
#assignment_text=(text) ⇒ Object
Enters the specified text string in the FCKEditor box for the assignment text.
-
#instructor_comments=(text) ⇒ Object
Enters the specified string into the Instructor Comments FCKEditor box.
-
#remove_assignment_text ⇒ Object
Removes all the contents of the FCKEditor Assignment Text box.
-
#return_to_list ⇒ Object
Clicks the Return to List button, then instantiates the AssignmentSubmissionList Class.
Methods included from FCKEditor
#enter_source_text, #entity_picker, #get_source_text, #select_all, #source, #source_field
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_attachments ⇒ Object
Clicks the Add Attachments button, then instantiates the AssignmentAttachments Class.
725 726 727 728 |
# File 'lib/sakai-cle-test-api/page_objects/assignments.rb', line 725 def frm.(:name=>"attach").click AssignmentAttachments.new(@browser) end |
#assignment_text=(text) ⇒ Object
Enters the specified text string in the FCKEditor box for the assignment text.
709 710 711 |
# File 'lib/sakai-cle-test-api/page_objects/assignments.rb', line 709 def assignment_text=(text) editor.td(:id, "xEditingArea").frame(:index=>0).send_keys(text) end |
#instructor_comments=(text) ⇒ Object
Enters the specified string into the Instructor Comments FCKEditor box.
720 721 722 |
# File 'lib/sakai-cle-test-api/page_objects/assignments.rb', line 720 def instructor_comments=(text) editor.td(:id, "xEditingArea").frame(:index=>0).send_keys(text) end |
#remove_assignment_text ⇒ Object
Removes all the contents of the FCKEditor Assignment Text box.
714 715 716 717 |
# File 'lib/sakai-cle-test-api/page_objects/assignments.rb', line 714 def remove_assignment_text editor.div(:title=>"Select All").fire_event("onclick") editor.td(:id, "xEditingArea").frame(:index=>0).send_keys :backspace end |
#return_to_list ⇒ Object
Clicks the Return to List button, then instantiates the AssignmentSubmissionList Class.
732 733 734 735 |
# File 'lib/sakai-cle-test-api/page_objects/assignments.rb', line 732 def return_to_list frm.(:value=>"Return to List").click AssignmentSubmissionList.new(@browser) end |