Created
February 29, 2012 21:35
-
-
Save pwenzel/1944596 to your computer and use it in GitHub Desktop.
Capture Screenshot With Selenium Webdriver
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 'rubygems' | |
require 'selenium-webdriver' | |
driver = Selenium::WebDriver.for :ie | |
driver.get "https://www.google.com" | |
driver.save_screenshot("./screen.png") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment