Skip to content

Instantly share code, notes, and snippets.

Created April 19, 2013 04:53
What would you like to do?
webkit screen capture using by capybara-webkit gem
#!/usr/bin/env ruby
require 'capybara-webkit'
require 'headless' do
driver = 'web_capture'
driver.visit ''
driver.render 'out.png'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment