Class: PreviewOverview
- Defined in:
- lib/sakai-cle-test-api/page_objects/assessments.rb
Overview
Page that appears when previewing an assessment. It shows the basic information about the assessment.
Instance Method Summary collapse
-
#done ⇒ Object
Clicks the Done button, then instantiates the EditAssessment class.
-
#due_date ⇒ Object
Scrapes the value of the due date from the page.
-
#feedback ⇒ Object
Scrapes the Feedback policy from the page.
-
#submission_limit ⇒ Object
Scrapes the submission limit from the page.
-
#time_limit ⇒ Object
Scrapes the value of the time limit from the page.
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
#done ⇒ Object
Clicks the Done button, then instantiates the EditAssessment class.
132 133 134 135 |
# File 'lib/sakai-cle-test-api/page_objects/assessments.rb', line 132 def done frm.(:name=>"takeAssessmentForm:_id5").click EditAssessment.new(@browser) end |
#due_date ⇒ Object
Scrapes the value of the due date from the page. Returns it as a string.
111 112 113 |
# File 'lib/sakai-cle-test-api/page_objects/assessments.rb', line 111 def due_date frm.div(:class=>"tier2").table(:index=>0)[0][0].text end |
#feedback ⇒ Object
Scrapes the Feedback policy from the page. Returns it as a string.
126 127 128 |
# File 'lib/sakai-cle-test-api/page_objects/assessments.rb', line 126 def feedback frm.div(:class=>"tier2").table(:index=>0)[9][0].text end |
#submission_limit ⇒ Object
Scrapes the submission limit from the page. Returns it as a string.
121 122 123 |
# File 'lib/sakai-cle-test-api/page_objects/assessments.rb', line 121 def submission_limit frm.div(:class=>"tier2").table(:index=>0)[6][0].text end |
#time_limit ⇒ Object
Scrapes the value of the time limit from the page. Returns it as a string.
116 117 118 |
# File 'lib/sakai-cle-test-api/page_objects/assessments.rb', line 116 def time_limit frm.div(:class=>"tier2").table(:index=>0)[3][0].text end |