Module: AddEditAssessmentPartMethods
- Includes:
- PageObject
- Defined in:
- lib/kuali-sakai-common-lib/assessments.rb
Overview
This is the page for adding and editing a part of an 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
-
#save ⇒ Object
Clicks the Save button, then instantiates the EditAssessment 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.
494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 |
# File 'lib/kuali-sakai-common-lib/assessments.rb', line 494 def self.page_elements(identifier) in_frame(identifier) do |frame| text_field(:title, :id=>"modifyPartForm:title", :frame=>frame) text_area(:information, :id=>"modifyPartForm:_id10_textinput", :frame=>frame) (:add_attachments, :name=>"modifyPartForm:_id54", :frame=>frame) (:questions_one_by_one) { |page| page.(:index=>0, :name=>"modifyPartForm:_id60", :frame=>frame)} (:random_draw) { |page| page.(:index=>1, :name=>"modifyPartForm:_id60", :frame=>frame) } select_list(:pool_name, :id=>"modifyPartForm:assignToPool", :frame=>frame) text_field(:number_of_questions, :id=>"modifyPartForm:numSelected", :frame=>frame) text_field(:point_value_of_questions, :id=>"modifyPartForm:numPointsRandom", :frame=>frame) text_field(:negative_point_value, :id=>"modifyPartForm:numDiscountRandom", :frame=>frame) (:randomized_each_time) { |page| page.(:index=>0, :name=>"modifyPartForm:randomizationType", :frame=>frame) } (:randomized_once) { |page| page.(:index=>1, :name=>"modifyPartForm:randomizationType", :frame=>frame) } (:order_as_listed) { |page| page.(:index=>0, :name=>"modifyPartForm:_id81", :frame=>frame) } (:random_within_part) { |page| page.(:index=>1, :name=>"modifyPartForm:_id81", :frame=>frame) } text_field(:objective, :id=>"modifyPartForm:obj", :frame=>frame) text_field(:keyword, :id=>"modifyPartForm:keyword", :frame=>frame) text_field(:rubric, :id=>"modifyPartForm:rubric", :frame=>frame) (:cancel, :name=>"modifyPartForm:_id90", :frame=>frame) end end |
Instance Method Details
#save ⇒ Object
Clicks the Save button, then instantiates the EditAssessment page class.
486 487 488 489 |
# File 'lib/kuali-sakai-common-lib/assessments.rb', line 486 def save frm.(:name=>"modifyPartForm:_id89").click EditAssessment.new(@browser) end |