Module: AssignmentSubmissionMethods
- Includes:
- PageObject
- Defined in:
- lib/kuali-sakai-common-lib/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.
Instance Method Details
#add_attachments ⇒ Object
Clicks the Add Attachments button, then instantiates the AssignmentAttachments Class.
768 769 770 771 |
# File 'lib/kuali-sakai-common-lib/assignments.rb', line 768 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.
752 753 754 |
# File 'lib/kuali-sakai-common-lib/assignments.rb', line 752 def assignment_text=(text) frm.frame(:id, "grade_submission_feedback_text___Frame").td(:id, "xEditingArea").frame(:index=>0).send_keys(text) end |
#instructor_comments=(text) ⇒ Object
Enters the specified string into the Instructor Comments FCKEditor box.
763 764 765 |
# File 'lib/kuali-sakai-common-lib/assignments.rb', line 763 def instructor_comments=(text) frm.frame(:id, "grade_submission_feedback_comment___Frame").td(:id, "xEditingArea").frame(:index=>0).send_keys(text) end |
#remove_assignment_text ⇒ Object
Removes all the contents of the FCKEditor Assignment Text box.
757 758 759 760 |
# File 'lib/kuali-sakai-common-lib/assignments.rb', line 757 def remove_assignment_text frm.frame(:id, "grade_submission_feedback_text___Frame").div(:title=>"Select All").fire_event("onclick") frm.frame(:id, "grade_submission_feedback_text___Frame").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.
775 776 777 778 |
# File 'lib/kuali-sakai-common-lib/assignments.rb', line 775 def return_to_list frm.(:value=>"Return to List").click AssignmentSubmissionList.new(@browser) end |