There have been a lot of posts in the past day on the File Download dialog
using AutoIt, take a look at the archives:
http://www.mail-archive.com/wtr-general%40rubyforge.org/

As far as step 4, I'd suggest turning it off in IE. Internet Options >
Advanced > Notify when downloads complete. I haven't had the need to do file
downloads, so I haven't mucked around with it.

-Charley

On 5/23/07, Kevin Scott <[EMAIL PROTECTED]> wrote:

This is the scenario I am trying to use Watir for:

1. Click link within IE window
2. Standard Microsoft window opens - File Download (Window Title) - Click
Save
3. Standard Microsoft window opens - Save As (Window Title) - Click Save
4. Standard Microsoft window opens - Download Complete (Window Title) -
Click Close
5. Continue with script

I am to get through Steps 1 & 2 via the following code (this was available
within the forum):

ie.link(:id, "export_results_to_excel").click_no_wait()

hwnd = ie.enabled_popup(15)
if (hwnd)
  popup = WinClicker.new
  popup.makeWindowActive(hwnd_1)
  popup.clickWindowsButton("File Download", "Save", maxWaittime = 30)
end

It's moving through steps 3 & 4 where I'm struggling. On a side note, this
product rocks!
_______________________________________________
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

Reply via email to