Module: PublishAssessmentMethods
- Includes:
- PageObject
- Defined in:
- lib/kuali-sakai-common-lib/assessments.rb
Overview
The review page once you’ve selected to Save and Publish the assessment
Class Method Summary collapse
-
.page_elements(identifier) ⇒ Object
Encapsulates all the PageObject code into a module method that can be called from the necessary class.
Instance Method Summary collapse
-
#publish ⇒ Object
Clicks the Publish button, then instantiates the AssessmentsList page class.
Class Method Details
.page_elements(identifier) ⇒ Object
Encapsulates all the PageObject code into a module method that can be called from the necessary class.
531 532 533 534 535 536 537 538 |
# File 'lib/kuali-sakai-common-lib/assessments.rb', line 531 def self.page_elements(identifier) in_frame(identifier) do |frame| (:cancel, :value=>"Cancel", :frame=>frame) (:edit, :name=>"publishAssessmentForm:_id23", :frame=>frame) select_list(:notification, :id=>"publishAssessmentForm:number", :frame=>frame) end end |
Instance Method Details
#publish ⇒ Object
Clicks the Publish button, then instantiates the AssessmentsList page class.
523 524 525 526 |
# File 'lib/kuali-sakai-common-lib/assessments.rb', line 523 def publish frm.(:value=>"Publish").click AssessmentsList.new(@browser) end |