Module: PoolImportMethods

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

Overview

The page that appears when you click to import a pool.

Instance Method Summary collapse

Instance Method Details

#choose_file(file_name, file_path = "") ⇒ Object

Enters the target file into the Choose File file field. Including the file path separately is optional.

Parameters:

  • file_name (String)

    the name of the file you want to choose. Can include path info, if desired.

  • file_path (String) (defaults to: "")

    Optional. This is the path information for the file location.



858
859
860
# File 'lib/kuali-sakai-common-lib/assessments.rb', line 858

def choose_file(file_name, file_path="")
  frm.file_field(:name=>"importPoolForm:_id6.upload").set(file_path + file_name)
end

#importObject

Clicks the Import button, then instantiates the QuestionPoolsList page class.



865
866
867
868
# File 'lib/kuali-sakai-common-lib/assessments.rb', line 865

def import
  frm.button(:value=>"Import").click
  QuestionPoolsList.new(@browser)
end