I found getting Ruby and Watir up and running to be a fairly smooth process; however, some of the documentation on line wasn't 100% accurate. My goal is to give you the info to get up and running as quickly as possible. The information in this post applies only to Windows.
Step 1 - Installing Ruby
- Install Ruby - I have had errors using the 1.9.X branch, things run much smoother with 1.8.7
Step 2 - Installing Watir as a Ruby Gem
- Open your favorite command prompt, and make sure you have the latest version of Ruby Gem's:
gem update --system
- Install watir using:
gem install watir
- If you want to use firefox you'll need to install this extension for Firefox 3.6
Step 3 - Your First Test Case
The directions at watir's site are very good for creating your first test case. The one important detail is before the step where you should enter require 'watir' you need to do require 'gemsystem'.
The directions at watir's site are very good for creating your first test case. The one important detail is before the step where you should enter require 'watir' you need to do require 'gemsystem'.