class Watir::Image

Public Instance Methods

save_to_file(filepath) click to toggle source
# 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