Class: AssessmentSettings

Inherits:
Object
  • Object
show all
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

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_authorObject

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 assessment_type_author
  frm.div(:class=>"tier2").table(:index=>$frame_index)[1][1].text
end

#assessment_type_descriptionObject

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_titleObject

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_publishObject

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.button(:value=>"Save Settings and Publish").click
  PublishAssessment.new(@browser)
end