Module: PreviewOverviewMethods
- Includes:
- PageObject
- Defined in:
- lib/kuali-sakai-common-lib/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.
Instance Method Details
#done ⇒ Object
Clicks the Done button, then instantiates the EditAssessment class.
150 151 152 153 |
# File 'lib/kuali-sakai-common-lib/assessments.rb', line 150 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.
129 130 131 |
# File 'lib/kuali-sakai-common-lib/assessments.rb', line 129 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.
144 145 146 |
# File 'lib/kuali-sakai-common-lib/assessments.rb', line 144 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.
139 140 141 |
# File 'lib/kuali-sakai-common-lib/assessments.rb', line 139 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.
134 135 136 |
# File 'lib/kuali-sakai-common-lib/assessments.rb', line 134 def time_limit frm.div(:class=>"tier2").table(:index=>0)[3][0].text end |