Module: SubmissionConfirmationMethods

Includes:
PageObject
Defined in:
lib/kuali-sakai-common-lib/assignments.rb

Overview

The page that appears when a Student user has fully submitted an assignment or saves it as a draft.

Instance Method Summary collapse

Instance Method Details

#back_to_listObject

Clicks the Back to list button, then instantiates the AssignmentsList page class.



658
659
660
661
662
# File 'lib/kuali-sakai-common-lib/assignments.rb', line 658

def back_to_list
  frm.button(:value=>"Back to list").click
  frm.link(:text=>"Assignment title").wait_until_present
  AssignmentsList.new(@browser)
end

#confirmation_textObject

Returns the text of the success message on the page.



647
648
649
# File 'lib/kuali-sakai-common-lib/assignments.rb', line 647

def confirmation_text
  frm.div(:class=>"portletBody").div(:class=>"success").text
end

#submission_textObject

Returns the text of the assignment submission.



652
653
654
# File 'lib/kuali-sakai-common-lib/assignments.rb', line 652

def submission_text
  frm.div(:class=>"portletBody").div(:class=>"textPanel indnt2").text
end