You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(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 => 'user@example.com'
fill_in 'Password', :with => 'password'
end
click_link 'Sign in'
end
end