Module: MatchingMethods
- Includes:
- PageObject, QuestionHelpers
- Defined in:
- lib/kuali-sakai-common-lib/assessments.rb
Overview
The page for setting up a matching 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.
721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 |
# File 'lib/kuali-sakai-common-lib/assessments.rb', line 721 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:_id78_textinput", :frame=>frame) (:add_attachments, :id=>"itemForm:_id122", :frame=>frame) text_area(:choice, :id=>"itemForm:_id147_textinput", :frame=>frame) text_area(:match, :id=>"itemForm:_id151_textinput", :frame=>frame) (:save_pairing, :name=>"itemForm:_id164", :frame=>frame) text_area(:feedback_for_correct, :id=>"itemForm:_id184_textinput", :frame=>frame) text_area(:feedback_for_incorrect, :id=>"itemForm:_id189_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 |