Skip to content

Instantly share code, notes, and snippets.

@wfaler
Created February 25, 2011 01:27
Show Gist options
  • Save wfaler/843252 to your computer and use it in GitHub Desktop.
Save wfaler/843252 to your computer and use it in GitHub Desktop.
watir.rb
Setup:
sudo gem install rspec
sudo gem install cucumber
sudo gem install watir
sudo gem install firewatir
sudo gem install safariwatir
sudo gem install watir-webdriver
--
Watir code:
require 'rubygems'
require 'watir-webdriver'
browser = Watir::Browser.new(:firefox)
browser.goto("http://localhost:8080/cars/new")
browser.text_field(:id => "model").set "Bronco"
puts "all done"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment