Dashboard > Watir > ... > Tutorial > Install Watir
Watir Log In View a printable version of the current page.
Install Watir
Added by Zeljko, last edited by Alan Baird on Jun 15, 2008  (view change)
Labels: 
(None)

Install Watir

  • Watir runs on Windows 2000, XP, Server 2003 and Vista
  • Watir works with the Internet Explorer web browser, versions 6 and 7.
  • Make sure you are logged in as administrator.
  • Open command prompt and type:
gem update --system 
gem install watir
  • Output should be something like this:
C:\Documents and Settings\Administrator\>gem install watir
Successfully installed watir-1.5.x
Installing ri documentation for watir-1.5.x...
Installing RDoc documentation for watir-1.5.x...

You don't have to download the gem first. Ruby's gem system will automatically find it on the web, download it and install it. Watir's gem includes libraries, the unit tests and the rdoc, but not the examples or the rest of the Watir documentation. It is convenient for setting up a new machine to run Watir scripts that you've already developed.

The "gem update --system" command will update the gem system itself. This is required
to install Watir gems beginning with Watir 1.5.4 (April 2008).

Watir 1.4 was released in August 2005. If you are upgrading from it,
see these notes.

  • You have installed Watir.
Watir Tutorial
< previous page :: Installation :: next page>
Quick Start Guide
Continue at Run the Watir Unit Tests.

This page is current for release 1.5.6.

Site running on a free Atlassian Confluence Community License granted to OpenQA. Evaluate Confluence today.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.5.6 Build:#812 Aug 06, 2007) - Bug/feature request - Contact Administrators