How to handle Pop Ups with Watir.
Watir works fine with ordinary web pop up windows. Use Watir::IE.attach. However, this command does not support modal web pop up windows. These are web pages that pop up and block access to the original page until you've closed them.
Watir includes support for these. Use Browser.modal_dialog to access them (more information on how to do this is on the Modal Dialogs page).
Watir provides a means of easily automating testing of web applications. One part of this automation is dealing with the various types of pop ups that Internet Explorer displays. Handling these pop ups has always been painful. This document tries to remove some of the pain, by describing what many of the pop ups are, why they appear and how to handle them.
Watch for a Watir solution in a future release.
Types of pop ups: