Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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