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

Instance Method Details

#add_attachmentsObject

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 add_attachments
  frm.button(: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_textObject

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_listObject

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.button(:value=>"Return to List").click
  AssignmentSubmissionList.new(@browser)
end