Module: AssessmentSettingsMethods

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

Overview

The Settings page for a particular Assessment

Instance Method Summary collapse

Instance Method Details

#assessment_type_authorObject

Scrapes the Assessment Author information from the page and returns it as a string.



171
172
173
# File 'lib/kuali-sakai-common-lib/assessments.rb', line 171

def assessment_type_author
  frm.div(:class=>"tier2").table(:index=>0)[1][1].text
end

#assessment_type_descriptionObject

Scrapes the Assessment Type Description from the page and returns it as a string.



176
177
178
# File 'lib/kuali-sakai-common-lib/assessments.rb', line 176

def assessment_type_description
  frm.div(:class=>"tier2").table(:index=>0)[2][1].text
end

#assessment_type_titleObject

Scrapes the Assessment Type from the page and returns it as a string.



166
167
168
# File 'lib/kuali-sakai-common-lib/assessments.rb', line 166

def assessment_type_title
  frm.div(:class=>"tier2").table(:index=>0)[0][1].text
end

#save_and_publishObject

Clicks the Save Settings and Publish button then instantiates the PublishAssessment class.



182
183
184
185
# File 'lib/kuali-sakai-common-lib/assessments.rb', line 182

def save_and_publish
  frm.button(:value=>"Save Settings and Publish").click
  PublishAssessment.new(@browser)
end