h = $ie2.enabled_popup()
if (h)
puts 'handle exists!'
w = WinClicker.new
w.clickWindowsButton_hwnd(h, "Cancel")
puts 'pop up canceled'
end
I found out that this would cancel the save image modal dialog which hangs
during the image save process. But there is another problem, that is if the
Image link is broken, then Save HTML Document dialog appeas. How to handle
this? i tried with AutoItX3.control as follows
autoit = WIN32OLE.new(AutoItX3.Control)
ret = autoit.WinWait('Save HTML Document', '', 1)
if (ret==1)
autoit.Send('{Save}')
end
but I am getting an Name error AutoItX3. Do anyone know why?
Appreciate any help!
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general