Automated testing that doesn’t hurt

Watir, pronounced water, is an open-source (BSD) family of Ruby libraries for automating web browsers. It allows you to write tests that are easy to read and maintain. It is simple and flexible.

Watir drives browsers the same way people do. It clicks links, fills in forms, presses buttons. Watir also checks results, such as whether expected text appears on the page.

Watir is a family of Ruby libraries but it supports your app no matter what technology it is developed in. Whilst Watir supports only Internet Explorer on Windows, Watir-WebDriver supports Chrome, Firefox, Internet Explorer, Opera and also running in headless mode (HTMLUnit).

Like other programming languages, Ruby gives you the power to connect to databases, read data files and spreadsheets, export XML, and structure your code as reusable libraries. Unlike other programming languages, Ruby is concise and often a joy to read.

Why Watir?

  • It’s a free Open Source tool. There are no costs to use the tool.
  • There’s a very active and growing community behind it.
  • It uses Ruby, a full-featured modern scripting language, rather than a proprietary vendorscript.
  • It supports your web app no matter what it is developed in.
  • It supports multiple browsers on different platforms.
  • It is powerful and easy to use, yet beautifully lightweight.
  • Don’t just take our word for it, see some awesome quotes below and install Watir.


“Watir Rocks! Truly awesome!!”—Shashank Date

“Watir is the most compelling alternative [to Fit] for filling the automated acceptance testing need.”—Ward Cunningham

“I have limited scripting experience and none with Ruby, but I was able to follow your examples and be productive in short order.”—Kevin Sheehy

“I’ve been trying to find the Holy Grail of Automated Web UI Testing… And the one I’m currently enamored with is Watir.”—Scott Hanselman

“I wanted to run around my office dancing and celebrating.”—Beth Ferguson

Watir Users

Some Watir users include (sorted alphabetically):

adready altentee bell codeborne convio crestech expedia facebook gap honeywell hp Infogain onerecovery oracle qsuper sap Toptal wellsfargo yahoo zazzle

If you would like to add your company to the list send us a logo (150×51), link to the home page and (if possible) a link to the page that says you are using Watir.

41 thoughts on “Automated testing that doesn’t hurt

  1. Watir is an excellent testing too!
    LiveOps QA team uses watir for function testing and smoke testing since late 2007. We did a lot of customization for our watir end-2-end automation framework. We also use it for Daily and weekly smoke test.

  2. Man! What an Awesome tool. Was the perfect tool i was looking for to develop a script for my project.Watir with Ruby lang, truely rocks.Keep goin!

  3. We found it one of the most robust tools for web application testing. We are using it since last two year and formed our own library / framework to do data driven testing. Usually we use it to automate our sanity test suite. However, for couple of projects we are working on to automate our regression suite using Watir.
    People says selenium is one of the most reliable open source tools for functional testing. Now, I have worked on both the tools and my personal favor goes along with Watir.

  4. Girish: Yes, I have also heard from people who work at HP that there are many people there who prefer watir over qtp, despite it being free to them. Frankly I think that once people pay so much money for it, it makes them blind to evidence that they made a bad decision. The folks at HP don’t have that kind of bias.

  5. Hello,
    i am trying to run Watir on Debian (browser: icewasel). but unable to install it properly.
    [require ‘watir’ is showing following message :
    irb(main):002:0> require ‘watir’
    LoadError: no such file to load — watir
    from (irb):2:in `require’
    from (irb):2
    from :0

    please help.

    • Click the INSTALL image above on the right side of the page. At the top of the page that opens you will find links for various OS’s including windows.. click the link for windows.

      For support post on and tag your question with the WATIR or WATIR-WEBDRIVER tag.

  6. can nay one suggest me a perfect book/material or user guide for ruby/watir for automating the web testing

  7. Hi,

    I work at Infogain and would like to include our company’s logo on the Watir page.

    We have been using Watir extensively for the past 4 years and built a data driven framework on it. Also, for cross browser support (firefox, chrome), we have incorporated watir-webdriver gem, and also using this in conjunction with the cucumber framework.

    This has been working wonders for us, and we run a suite of about 350 testcases on a daily basis.

    Please let me know if you can include our company’s logo, and any specific information that you might require.

    Anukul Singhal

  8. Hi,
    I need to ask that can I use this tool for the functional testing of applications built in .Net ? Please respond so that i can start using this tool, I have heard alot about this.

  9. I believe what you published made a ton of sense. But, what about
    this? what if you were to create a awesome headline? I mean, I
    don’t wish to tell you how to run your blog, however what if you added
    a post title that grabbed people’s attention? I mean | Web Application Testing in Ruby is a little boring.
    You might look at Yahoo’s front page and note how they create news
    headlines to get people interested. You might try adding a video
    or a picture or two to grab people excited
    about everything’ve written. In my opinion, it could make your posts a little bit more interesting.

  10. Superb blog! Do you have any helpful hints for aspiring writers?
    I’m planning to start my own blog soon but I’m a little lost on everything.
    Would you recommend starting with a free
    platform like WordPress or go for a paid option? There are so many choices out there that I’m completely confused ..

    Any tips? Appreciate it!

  11. We stumbled over here coming from a different web page and thoughht I
    might check things out. I like what I see so now i am following you.
    Look forward to looking at your web paqge again.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s