Module: FileUploadMethods

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

Overview

The page for setting up a question that requires attaching a file

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.



803
804
805
806
807
808
809
810
811
812
813
814
815
# File 'lib/kuali-sakai-common-lib/assessments.rb', line 803

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:_id69_textinput", :frame=>frame)
    button(:add_attachments, :id=>"itemForm:_id113", :frame=>frame)
    text_field(:feedback, :id=>"itemForm:_id130_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