Class: Selenium::FileUpload
- Inherits:
-
Object
- Object
- Selenium::FileUpload
- Defined in:
- lib/selenium/file_upload.rb
Instance Method Summary collapse
- #enter(file) ⇒ Object
-
#initialize(webpage, locator) ⇒ FileUpload
constructor
A new instance of FileUpload.
Constructor Details
#initialize(webpage, locator) ⇒ FileUpload
Returns a new instance of FileUpload.
7 8 9 10 |
# File 'lib/selenium/file_upload.rb', line 7 def initialize(webpage, locator) @webpage = webpage @locator = locator end |
Instance Method Details
#enter(file) ⇒ Object
12 13 14 |
# File 'lib/selenium/file_upload.rb', line 12 def enter(file) @webpage.upload(@locator, file) end |