Skip to content

Instantly share code, notes, and snippets.

@sanryuu
Created February 25, 2015 01:53
Show Gist options
  • Save sanryuu/8d5a328be19bdda75171 to your computer and use it in GitHub Desktop.
Save sanryuu/8d5a328be19bdda75171 to your computer and use it in GitHub Desktop.
CapybaraとSeleniumを使って少ないコードで実行を試す。
#! /usr/bin/env ruby
require "capybara"
require "selenium-webdriver"
session = Capybara::Session.new(:selenium)
session.visit 'http://example.com'
session.save_screenshot('screenshot.png')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment