Module: TrueFalseMethods
- Includes:
- PageObject, QuestionHelpers
- Defined in:
- lib/kuali-sakai-common-lib/assessments.rb
Overview
The page for setting up a True/False question
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.
Methods included from QuestionHelpers
Class Method Details
.page_elements(identifier) ⇒ Object
Encapsulates all the PageObject code into a module method that can be called from the necessary class.
748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 |
# File 'lib/kuali-sakai-common-lib/assessments.rb', line 748 def self.page_elements(identifier) QuestionHelpers.(identifier) in_frame(identifier) do |frame| (:cancel, :id=>"itemForm:_id63", :frame=>frame) text_field(:answer_point_value, :id=>"itemForm:answerptr", :frame=>frame) text_area(:question_text, :id=>"itemForm:_id77_textinput", :frame=>frame) (:add_attachments, :id=>"itemForm:_id121", :frame=>frame) text_field(:negative_point_value, :id=>"itemForm:answerdsc", :frame=>frame) (:answer_true) {|page| page.(:index=>0, :name=>"itemForm:TF", :frame=>frame)} (:answer_false) {|page| page.(:index=>1, :name=>"itemForm:TF", :frame=>frame)} (:required_rationale_yes) {|page| page.(:index=>0, :name=>"itemForm:rational", :frame=>frame)} (:required_rationale_no) {|page| page.(:index=>1, :name=>"itemForm:rational", :frame=>frame)} text_area(:feedback_for_correct, :id=>"itemForm:_id148_textinput", :frame=>frame) text_area(:feedback_for_incorrect, :id=>"itemForm:_id152_textinput", :frame=>frame) select_list(:assign_to_part, :id=>"itemForm:assignToPart", :frame=>frame) select_list(:assign_to_pool, :id=>"itemForm:assignToPool", :frame=>frame) end end |