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

Instance Method Summary collapse

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|
    button(:cancel, :value=>"Cancel", :frame=>frame)
    button(:edit, :name=>"publishAssessmentForm:_id23", :frame=>frame)
    select_list(:notification, :id=>"publishAssessmentForm:number", :frame=>frame)

  end
end

Instance Method Details

#publishObject

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