Class: PoolImport
- Inherits:
-
AssessmentsBase
- Object
- PageFactory
- BasePage
- AssessmentsBase
- PoolImport
- Defined in:
- lib/sambal-cle/page_objects/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.
Methods inherited from AssessmentsBase
menu_bar_elements, pool_page_elements, question_page_elements
Methods inherited from BasePage
basic_page_elements, button, damballa, frame_element, link
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.
720 721 722 |
# File 'lib/sambal-cle/page_objects/assessments.rb', line 720 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.
727 728 729 730 |
# File 'lib/sambal-cle/page_objects/assessments.rb', line 727 def import frm.(:value=>"Import").click QuestionPoolsList.new(@browser) end |