-
-
Save camiloribeiro/3865886 to your computer and use it in GitHub Desktop.
Capybara in IRB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# copy and paste this into your terminal to start an IRB session and use Capybara's DSL to write tests interactively | |
# Thanks to Tom Clements | |
# http://tom-clements.com/blog/2012/02/25/capybara-on-the-command-line-live-browser-testing-from-irb/ | |
irb | |
require 'capybara/dsl' | |
include Capybara::DSL | |
Capybara.default_driver = :selenium | |
visit "http://127.0.0.1:3000" | |
visit "http://www.google.com" #etc... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment