Class: AssignmentSubmissionList
- Inherits:
-
Object
- Object
- AssignmentSubmissionList
- Includes:
- AssignmentsMenu, PageObject
- Defined in:
- lib/sakai-oae-test-api/cle_frame_classes.rb
Overview
The page that appears when you click on an assignment’s “Grade” or “View Submission” link as an instructor. Shows the list of students and their assignment submission status.
Instance Method Summary collapse
-
#grade(student_name) ⇒ Object
Clicks the Grade link for the specified student, then instantiates the AssignmentSubmission page class.
-
#show_assignment_details ⇒ Object
Clicks the Show Assignment Details button.
-
#show_resubmission_settings ⇒ Object
Clicks the Show Resubmission Settings button.
-
#student_table ⇒ Object
Gets the Student table text and returns it in an Array object.
-
#submission_status_of(student_name) ⇒ Object
Gets the value of the status field for the specified Student.
Methods included from AssignmentsMenu
#add_assignment, #assignment_list, #assignments_frame, #grade_report, #options, #permissions, #reorder, #student_view
Methods included from PageObject
#method_missing, #name_li, #name_link
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class PageObject
Instance Method Details
#grade(student_name) ⇒ Object
Clicks the Grade link for the specified student, then instantiates the AssignmentSubmission page class.
1777 1778 1779 1780 1781 |
# File 'lib/sakai-oae-test-api/cle_frame_classes.rb', line 1777 def grade(student_name) frm.table(:class=>"listHier lines nolines").row(:text=>/#{Regexp.escape(student_name)}/).link(:text=>"Grade").click frm.frame(:id, "grade_submission_feedback_comment___Frame").td(:id, "xEditingArea").frame(:index=>0).wait_until_present AssignmentSubmission.new(@browser) end |
#show_assignment_details ⇒ Object
Clicks the Show Assignment Details button.
1766 1767 1768 |
# File 'lib/sakai-oae-test-api/cle_frame_classes.rb', line 1766 def show_assignment_details frm.image(:src, "/library/image/sakai/expand.gif").click end |
#show_resubmission_settings ⇒ Object
Clicks the Show Resubmission Settings button
1761 1762 1763 |
# File 'lib/sakai-oae-test-api/cle_frame_classes.rb', line 1761 def show_resubmission_settings frm.image(:src, "/library/image/sakai/expand.gif?panel=Main").click end |
#student_table ⇒ Object
Gets the Student table text and returns it in an Array object.
1771 1772 1773 |
# File 'lib/sakai-oae-test-api/cle_frame_classes.rb', line 1771 def student_table table = frm.table(:class=>"listHier lines nolines").to_a end |
#submission_status_of(student_name) ⇒ Object
Gets the value of the status field for the specified Student. Note that the student’s name needs to be entered so that it’s unique for the row, but it does not have to match the entire name/id value–unless there are two students with the same name.
Useful for verification purposes.
1790 1791 1792 |
# File 'lib/sakai-oae-test-api/cle_frame_classes.rb', line 1790 def submission_status_of(student_name) frm.table(:class=>"listHier lines nolines").row(:text=>/#{Regexp.escape(student_name)}/)[4].text end |