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

Instance Method Details

#doneObject

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.button(:name=>"takeAssessmentForm:_id5").click
  EditAssessment.new(@browser)
end

#due_dateObject

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

#feedbackObject

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_limitObject

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_limitObject

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