Class: AssessmentSettings
- Inherits:
-
AssessmentsBase
- Object
- PageMaker
- BasePage
- AssessmentsBase
- AssessmentSettings
- Defined in:
- lib/sakai-cle-test-api/page_objects/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.
Methods inherited from AssessmentsBase
menu_bar_elements, pool_page_elements, question_page_elements
Methods inherited from BasePage
basic_page_elements, frame_element
Methods inherited from PageMaker
element, expected_element, expected_title, #initialize, #method_missing, page_url
Constructor Details
This class inherits a constructor from PageMaker
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class PageMaker
Instance Method Details
#assessment_type_author ⇒ Object
Scrapes the Assessment Author information from the page and returns it as a string.
152 153 154 |
# File 'lib/sakai-cle-test-api/page_objects/assessments.rb', line 152 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.
157 158 159 |
# File 'lib/sakai-cle-test-api/page_objects/assessments.rb', line 157 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.
147 148 149 |
# File 'lib/sakai-cle-test-api/page_objects/assessments.rb', line 147 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.
163 164 165 166 |
# File 'lib/sakai-cle-test-api/page_objects/assessments.rb', line 163 def save_and_publish frm.(:value=>"Save Settings and Publish").click PublishAssessment.new(@browser) end |