Module: FillInBlankMethods

Includes:
PageObject, QuestionHelpers
Defined in:
lib/kuali-sakai-common-lib/assessments.rb

Overview

The page for setting up a Fill-in-the-blank question

Class Method Summary collapse

Methods included from QuestionHelpers

menu_elements, #save

Class Method Details

.page_elements(identifier) ⇒ Object

Encapsulates all the PageObject code into a module method that can be called from the necessary class.



673
674
675
676
677
678
679
680
681
682
683
684
685
686
# File 'lib/kuali-sakai-common-lib/assessments.rb', line 673

def self.page_elements(identifier)
  QuestionHelpers.menu_elements(identifier)
  in_frame(identifier) do |frame|
    button(:cancel, :id=>"itemForm:_id63", :frame=>frame)
    text_field(:answer_point_value, :id=>"itemForm:answerptr", :frame=>frame)
    text_area(:question_text, :id=>"itemForm:_id75_textinput", :frame=>frame)
    checkbox(:case_sensitive, :name=>"itemForm:_id76", :frame=>frame)
    checkbox(:mutually_exclusive, :name=>"itemForm:_id78", :frame=>frame)
    button(:add_attachments, :id=>"itemForm:_id126", :frame=>frame)
    select_list(:assign_to_part, :id=>"itemForm:assignToPart", :frame=>frame)
    select_list(:assign_to_pool, :id=>"itemForm:assignToPool", :frame=>frame)

  end
end