The default Watir::IE.attach method doesn't seem to work because this is a dialog. I can use the autoit.WinWait() method to get the window handle. But, access the controls on the dialog seems elusive. Any help is greatly appreciated.
irb(main):005:0> d = Watir::IE.attach(:title,/Web Page Dialog/) Watir::Exception::NoMatchingWindowFoundException: Unable to locate a window with title of (?-mix:Web Page Dialog) from d:/tools/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1192/./watir.rb:16 42:in `attach_browser_window' from d:/tools/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1192/./watir.rb:15 19:in `_attach_init' from d:/tools/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1192/./watir.rb:15 13:in `attach' from (irb):5 irb(main):018:0> autoit = WIN32OLE.new('AutoItX3.Control') => #<WIN32OLE:0x9f0cb30> irb(main):019:0> autoit.WinWait "Web Page Dialog", "", 1 => 1 _______________________________________________ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general