[Wtr-general] watir-1.5.1.1081.gem and popups

Charley Baker charley.baker at gmail.com
Fri Sep 15 10:25:05 EDT 2006


You've pretty much answered your own question - only null and :title
methods are supported.
modal = ie.modal_dialog   # or use the :title location method to find by title
modal.close

Look at modal_dialog_test.rb in the unit tests if you need more
information and examples.

-Charley


On 9/15/06, brian.kejser at protexis.com <brian.kejser at protexis.com> wrote:
> Hi
>
> Could some please explain how to find and close a modal dialog using
> watir-1.5.1.1081.gem.
>
> When I try to find the dialog using the line 'ie2 = ie.modal_dialog(:hwnd,
> hwnd) ' ruby returns the error 'Only null and :title methods are supported
> (ArgumentError)'
>
> Thanks
>
>
>
> _______________________________________________
> Wtr-general mailing list
> Wtr-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/wtr-general
>


More information about the Wtr-general mailing list