Class: Selenium::FileUpload

Inherits:
Object
  • Object
show all
Defined in:
lib/selenium/file_upload.rb

Instance Method Summary collapse

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