Help us understand the problem. What is going on with this article?

capybara-webkitでWebページのスクリーンショットを撮る2013

More than 5 years have passed since last update.

capybara-webkitでwebページのスクリーンショットを撮る - 橋本詳解 - http://d.hatena.ne.jp/shokai/20120302/1330670227

最新の capybara-webkit だとこちらのコードは動かない模様

Macの場合

brew install qt
gem install capybara-webkit
require 'capybara-webkit'

browser = Capybara::Webkit::Driver.new('web_capture').browser
browser.visit 'http://qiita.com/'
browser.render('qiita.png', 1280, 650)

参考 / capybara-webkit/lib/capybara/webkit/driver.rb at master · thoughtbot/capybara-webkit · GitHub - https://github.com/thoughtbot/capybara-webkit/blob/master/lib/capybara/webkit/driver.rb

9m
ごめんなさい
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away