Skip to content

Instantly share code, notes, and snippets.

@masaki
Created April 28, 2012 12:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save masaki/2518883 to your computer and use it in GitHub Desktop.
Save masaki/2518883 to your computer and use it in GitHub Desktop.
capybara selenium scripting
#!/usr/bin/env ruby
require 'rubygems'
require 'capybara'
require 'capybara/dsl'
Capybara.run_server = false
Capybara.default_driver = :selenium
include Capybara::DSL
visit 'http://www.google.co.jp/'
p current_url
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment