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, [EMAIL PROTECTED] <[EMAIL PROTECTED]> 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 > [email protected] > http://rubyforge.org/mailman/listinfo/wtr-general > _______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
