Class: AssessmentSettings
- Inherits:
-
Object
- Object
- AssessmentSettings
- Includes:
- PageObject
- Defined in:
- lib/sakai-oae-test-api/cle_frame_classes.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.
Methods included from PageObject
#method_missing, #name_li, #name_link
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class PageObject
Instance Method Details
#assessment_type_author ⇒ Object
Scrapes the Assessment Author information from the page and returns it as a string.
187 188 189 |
# File 'lib/sakai-oae-test-api/cle_frame_classes.rb', line 187 def frm.div(:class=>"tier2").table(:index=>$frame_index)[1][1].text end |
#assessment_type_description ⇒ Object
Scrapes the Assessment Type Description from the page and returns it as a string.
192 193 194 |
# File 'lib/sakai-oae-test-api/cle_frame_classes.rb', line 192 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.
182 183 184 |
# File 'lib/sakai-oae-test-api/cle_frame_classes.rb', line 182 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.
198 199 200 201 |
# File 'lib/sakai-oae-test-api/cle_frame_classes.rb', line 198 def save_and_publish frm.(:value=>"Save Settings and Publish").click PublishAssessment.new(@browser) end |