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
-
#assessment_type_author ⇒ Object
Scrapes the Assessment Author information from the page and returns it as a string.
-
#assessment_type_description ⇒ Object
Scrapes the Assessment Type Description from the page and returns it as a string.
-
#assessment_type_title ⇒ Object
Scrapes the Assessment Type from the page and returns it as a string.
-
#save_and_publish ⇒ Object
Clicks the Save Settings and Publish button then instantiates the PublishAssessment class.
Instance Method Details
#assessment_type_author ⇒ Object
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 frm.div(:class=>"tier2").table(:index=>0)[1][1].text end |
#assessment_type_description ⇒ Object
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_title ⇒ Object
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_publish ⇒ Object
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.(:value=>"Save Settings and Publish").click PublishAssessment.new(@browser) end |