Getting Started With Watir
Download: One-Click Installer - Windows
Visit here, scroll down little and find the download link on right side of the page. Install it.
Install IE developer bar:
Download and install.
Download latest development version of watir.
Download the latest gem. Click on "Gem" in Download column.
Setup sandbox
Type on command prompt:
mkdir c:\pde\watir
cd c:\pde\watir
REM Note:copy the gem file downloaded above in this folder
gem install --local watir
notepad test.rb
In test.rb file type
require 'watir' ie = Watir::IE ie.goto("http://google.com/");
Run the test file
In cmd window type:
ruby test.rb
Alternatively you could right-click the test.rb file, select 'Edit', it will open a SITE editor. Here you can type 'F5' to run the script.
Further reading:
- Official watir user guide, faq, etc.





