Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@asbubam
Created April 19, 2013 04:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save asbubam/5418225 to your computer and use it in GitHub Desktop.
Save asbubam/5418225 to your computer and use it in GitHub Desktop.
webkit screen capture using by capybara-webkit gem
#!/usr/bin/env ruby
require 'capybara-webkit'
require 'headless'
Headless.ly do
driver = Capybara::Driver::Webkit.new 'web_capture'
driver.visit 'http://www.google.co.kr'
driver.render 'out.png'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment