Class: ImportStepTwo
- Defined in:
- lib/sakai-cle-test-api/page_objects/calendar.rb
Instance Method Summary collapse
-
#import_file(filename, filepath = "") ⇒ Object
Enters the specified filename in the file field.
Methods inherited from BasePage
basic_page_elements, frame_element
Methods inherited from PageMaker
element, expected_element, expected_title, #initialize, #method_missing, page_url
Constructor Details
This class inherits a constructor from PageMaker
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class PageMaker
Instance Method Details
#import_file(filename, filepath = "") ⇒ Object
Enters the specified filename in the file field.
Note that the file path is an optional second parameter, if you do not want to include the full path in the filename.
386 387 388 |
# File 'lib/sakai-cle-test-api/page_objects/calendar.rb', line 386 def import_file(filename, filepath="") frm.file_field(:name=>"importFile").set(filepath + filename) end |