Class: SubmissionConfirmation

Inherits:
BasePage show all
Defined in:
lib/sakai-cle-test-api/page_objects/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

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

#back_to_listObject

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



619
620
621
622
623
# File 'lib/sakai-cle-test-api/page_objects/assignments.rb', line 619

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.



608
609
610
# File 'lib/sakai-cle-test-api/page_objects/assignments.rb', line 608

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

#submission_textObject

Returns the text of the assignment submission.



613
614
615
# File 'lib/sakai-cle-test-api/page_objects/assignments.rb', line 613

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