Charley Baker wrote:
> Mark,
>
>   It's still available, but in the watir/contrib directory. In order
> to use it, add
> require 'watir/contrib/enabled_popup'
> to your scripts. This is still a development version and so there will
> be some bumps along the way. Sorry about the confusion, I'll try to
> make sure changes are documented along the way to the next release.
>
> -Charley
>   
As the author of the enabled_popup() method I'd like to argue that it 
remain in the main Watir code.  The enabled_popup call will give you the 
window handle of ANY type of popup, so it is very useful when a page may 
or may not open a popup window, and the user doesn't know whether that 
window will be a modal dialog window or a Javascript or IE popup.

The functionality is already in the ModalDialog#find_modal_from_window 
method, so no code is being saved (in fact, my original ModalDialog 
class used enabled_popup to determine if a popup window was showing).

This function is of general use and won't cost much in terms of code 
size, so why not let it remain?

David
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to