Created
February 25, 2011 01:27
-
-
Save wfaler/843252 to your computer and use it in GitHub Desktop.
watir.rb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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