6. google_steps.rb
When /^I search google for "([^"]*)"$/ do |search_string|
visit("http://google.com")
fill_in ('q', :with => search_string)
click_button ('Search')
end
Then /google should .+ "([^"]*)"/ do |expected_substring|
page.should have_content(expected_substring)
end
8. what else?
capybara-firebug
use capybara with rspec
run on remote server using
Capybara.run_server = false
supports both xpath and css
http://google-opensource.blogspot.com/2009/05/introducing-
webdriver.html