Created
December 28, 2009 08:18
-
-
Save bfaloona/264588 to your computer and use it in GitHub Desktop.
screenshot of active window from watir
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'watir/screen_capture' | |
include Watir::ScreenCapture | |
# http://wtr.rubyforge.org/rdoc/classes/Watir/ScreenCapture.html | |
screen_capture('screenshot.jpg', true) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment