Your opinion matters! Please fill in the InfoQ Survey!

Watir Adds Support for Modal Dialogs

| by Obie Fernandez Follow 0 Followers on Jun 08, 2006. Estimated reading time: 1 minute |

A note to our readers: As per your request we have developed a set of features that allow you to reduce the noise, while not losing sight of anything that is important. Get email and web notifications by choosing the topics you are interested in.

Watir is a script processor for testing/automating web applications in Internet Explorer. It uses Ruby on Win32 to drive the browser via COM. FireWatir is an extension to WATiR that allows WATiR scripts written for IE to work with the FireFox browser as well, with little to no changes. Essentially, Watir gives you the ability to script your web browser in Ruby with a very easy-to-use API.

Users of Watir are very passionate about how great it is. Its users are primarily QA people comfortable with more programming-like approaches to testing, but has also been used in ways other than testing. For example, at ThoughtWorks, people have posted Watir scripts for both posting and verifying payment of expense reports using our internal web-based system.

Agile folks tend to love Watir too, because it can be used as the foundation for automated acceptance testing.

According to Brett Pettichord, testing expert and author of Watir:

About a year ago, it became clear that one of the major limitations of Watir was its lack of support for modal web dialogs. These are IE-specific popup windows that are drawn with the showModalDialog command. Unlike ordinary web popups, modals block access to the original web page until they are closed. You don't see them much on public web sites: they aren't compatable with non-IE browsers and and are arguably an example of poor user interface design. But they are very common with enterprise applications because they are easier to code. And these happen to be the kinds of applications that people often want to test with Watir.

Besides Rails, Watir is probably one of the most common first exposures of people to the Ruby language. If you have Ruby and RubyGems installed already, trying it out is as easy as typing gem install watir

Rate this Article

Adoption Stage

Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Tell us what you think

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread
Community comments

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread


Login to InfoQ to interact with what matters most to you.

Recover your password...


Follow your favorite topics and editors

Quick overview of most important highlights in the industry and on the site.


More signal, less noise

Build your own feed by choosing topics you want to read about and editors you want to hear from.


Stay up-to-date

Set up your notifications and don't miss out on content that matters to you