Class: Watir::Image

Inherits:
Object
  • Object
show all
Defined in:
lib/watir_crawler/watir-webdriver.rb

Instance Method Summary collapse

Instance Method Details

#save_to_file(filepath) ⇒ Object



10
11
12
13
14
15
16
# File 'lib/watir_crawler/watir-webdriver.rb', line 10

def save_to_file filepath
  File.open(filepath, 'wb') do |f|
    f.write open(self.uri).read
  end

  filepath
end