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


More than 5 years have passed since last update.

capybara-webkitでwebページのスクリーンショットを撮る - 橋本詳解 -

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


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

browser ='web_capture').browser
browser.visit ''
browser.render('qiita.png', 1280, 650)

参考 / capybara-webkit/lib/capybara/webkit/driver.rb at master · thoughtbot/capybara-webkit · GitHub -

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