Skip to content

Instantly share code, notes, and snippets.

@burtlo
Created September 7, 2012 22:05
Show Gist options
  • Save burtlo/3670126 to your computer and use it in GitHub Desktop.
Save burtlo/3670126 to your computer and use it in GitHub Desktop.
Capybara without other testing frameworks
require 'capybara'
require 'capybara/dsl'
Capybara.configure do |config|
config.run_server = false
config.app_host = 'http://www.google.com'
end
Capybara.current_driver = :selenium
include Capybara::DSL
visit "/"
fill_in "gbqfq", :with => 'Best Tacos in San Diego'
# click_on "I'm Feeling Lucky"
sleep 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment