-
Notifications
You must be signed in to change notification settings - Fork 5
With Capybara
trans edited this page Sep 13, 2010
·
2 revisions
(This setup hasn’t been tested yet, so if you encounter any issues please report them.)
Capybara is a webrat alternative which aims to support all browser simulators.
The setup for of using Capybara with QED should be as simple as adding the following lines to a file in your demos applique, e.g. applique/capybara.rb
.
require 'capybara' require 'capybara/dsl' Capybara.default_driver = :culerity # or :selenium include Capybara
A common example of a helper method using Capybara:
def login! within("//form[@id='session']") do fill_in 'Login', :with => '[email protected]' fill_in 'Password', :with => 'password' end click_link 'Sign in' end end