Dashboard > Watir > ... > Tutorial > Pop Ups
Watir Log In View a printable version of the current page.
Pop Ups
Added by Zeljko, last edited by Bret Pettichord on Apr 23, 2008  (view change)
Labels: 
(None)

Pop Ups

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 IE#modal_dialog to access them.

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.

JavaScript generated popups such as Alert boxes, Windows Security popups, and other popups that are not contained in a web browser are not accessible the same way HTML pages are. There has been some experimental code packaged with Watir to deal with popups with limited success. A good popup handling solution is being worked on and will be included in a future Watir release. In the mean time, AutoIT is installed with Watir. Look at popups_test.rb in the unit tests directory, and use Watir Search for more information.

Watch for a Watir solution in a future release.

Types of pop ups:

Go to contents, previous, next page.

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