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
-
#choose_file(file_name, file_path = "") ⇒ Object
Enters the target file into the Choose File file field.
-
#import ⇒ Object
Clicks the Import button, then instantiates the QuestionPoolsList page class.
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.
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 |
#import ⇒ Object
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.(:value=>"Import").click QuestionPoolsList.new(@browser) end |