Skip to content

Instantly share code, notes, and snippets.

@andreastt
Created March 14, 2011 15:39
Show Gist options
  • Save andreastt/869332 to your computer and use it in GitHub Desktop.
Save andreastt/869332 to your computer and use it in GitHub Desktop.
def screenshot(filename = nil)
filename.empty? ? OperaWatir::Screenshot.new(self).save(filename) : OperaWatir::Screenshot.new(self)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment