Attention!
Recently, we updated the Watir website to be hosted on GitHub Pages. The existing watir.com and watirwebdriver.com sites will no longer be maintained, but most if not all of the information currently on them has been transferred over to the new site. Check it out at watir.github.io
watirwebdriver.com now redirects to this new site, and soon watir.github.io will become watir.com.
If you think something is missing or have any comments or feedback, make an issue on the site’s GitHub page or join us on our Slack channel.
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.
Quotes
“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):
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.
Watir definitely rocks..I haven’t used such a tool before.
I’m using the free version of iMacro right now and is easy to use. I will give watir a try even if i never used ruby.
Love using Watir.
Ease of Ruby + Ease of Watir = Great freakin’ web apps!
Brilliant..very reliable with the web GUI elements and very powerful with the backend capabilities…love it.
Like you say at the top – “Watir Rocks”! It seems that Watir and Ruby were a marriage made in heaven!
great way to test browser support.
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.
Very easy tool & take very less effort but produce attractive results…..love WATIR!!!
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!
WatiR, we enjoy using WatiR, we promote it all the companies, and use it for own projects.
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.
WATIR is the best automation tool I’ve tried, combined with the power of Ruby it just works!
Funny as it may seem….Even HP appears in users list of WATIR :)
Watir Rocks… just like Ruby!!
Such a nice tool!. So easy to use.
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.
Watir is perfect for my needs having moved over from Fakeapp which lacks any support from its developers.
who can tell me where i can download 2.0 version?
Take a look at this page: http://watir.com/installation/
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.
Watir is Windows only. Try watir-webdriver at http://watirwebdriver.com
i tried it :
WARNING: Invalid .gemspec format in ‘/usr/lib/ruby/gems/1.8/specifications/firewatir-1.9.4.gemspec’
ERROR: Error installing watir-webdriver:
multi_json requires RubyGems version >= 1.3.6
Hi,
How to install watir on IE 8 ??
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 stackoverflow.com and tag your question with the WATIR or WATIR-WEBDRIVER tag.
why hard to connect the watir.com from China?
can nay one suggest me a perfect book/material or user guide for ruby/watir for automating the web testing
I am not objective, since I am the author, but take a look at Watir Book http://watir.com/book/
Read watirways awesome book… covers what you want pure watir-webdriver book. no selenium is used. Best for learners.
Hi,
where can i get a list of open source web applications using Watir?
A few examples of what you mean by “open source web applications” would help.
e.g. phpmyadmin or Joomla. They use Selenium. And Watir? Thank you
We do not have such list. I know that MediaWiki uses Watir Webdriver, so it uses both Selenium and Watir: https://github.com/wikimedia/qa-browsertests
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.
Thanks,
Anukul Singhal
Hi Anukul, please send us a logo of your company (150×51), link to the home page and (if possible) a link to the page that says you are using Watir.
Hi Zeljko,
Logo url – http://www.imageurlhost.com/images/190om45930ktzwh9k3q_infogain.jpg (image when saved is 150×51)
Link to Home page – http://www.infogain.com/
Link to Watir usage – http://www.infogain.com/qa-test/services-overview.html (search Watir on this web page)
Let me know if you need any further information.
Thanks,
Anukul
Done!
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.
Yes, you can.
What browser versions do Watir suppports, does it support IE11?
I am new to this and I don’t know Ruby language. Is there some turtorial to learn how to use this Watir tool
does anyone know any contact information for support or the team? Or if Watir can be used for remote control of computers?
For support, see the Support page. The page includes a number of ways to get help from the community.
Regarding your question about remote control of computers, it depends on what you mean by “remote control of computers”. Watir, specifically Watir-Webdriver, can be used to drive browsers on a remote computer. Watir is not designed for anything else – eg it cannot open Excel or shutdown a computer.
You can even add Cisco in the companies list. Many of the Automation projects in Cisco are using WATIR Webdriver.
I have been using ruby without any issue. However, I am getting a bug error from yesterday. Any one has similar issues please. You may have encountered a bug in the Ruby Interpreter or extension libraries”
Hi vivek,
You are unlikely to get much help through comments. Please consider using one of the support options such as the mailing list or Stack Overflow.
Make sure to provide as many details about the problem as possible. For example, what did you change between the day before (when you did not have issues) to the day you started having issues. What is the code you are running?
Is that more efficient than Selenium Web-driver ?
Watir-Webdriver uses Selenium Webdriver to drive the browser, but uses a more intuitive API.
The answer depends on what flavour of Watir you are asking about – Webdriver or Classic.
Watir-Webdriver is an API wrapper around Selenium-Webdriver, so in terms of performance will be quite close. The Watir syntax is easier to use, which can make writing scripts more efficient.
From my experience, using Watir-Classic does have better performance than Selenium-Webdriver. However, the trade off is that Watir-Classic only supports Internet Explorer.
I want to add our companies logo to your list of companies that use watir but I can’t find an email to send the required info. Could someone please provide me with the email?
Alejandro,
You can send it to me via gmail – titusfortner. Thanks!
Titus
Is there any record and play back tool for this Waitr?? can we export test scripts if it able to record?? Will it support all types of UI object and webelements?
Check out testwise. There is an add-on for fire-fox.
Hi, is this tools workable for XBAP Web application?
Hello, we are looking for an automated test generator for HTML forms.
We are a company that basically creates projects in HTML and we are looking for something that help us create automated test.
Is watir suitable for this?