I can't get WET to control a file dialog:
DEBUG: evaluating Browser("title:=/^View Note:./").Link("href:=/.*FileDownload./")
DEBUG: evaluating Browser("title:=/^View Note:.*/").Dialog("title:=File Download").Button("text:=Cancel")
The WET script freezes as though it can't find the dialog "File Download" to click the Cancel button.
For example, to reproduce on the web:
ie = Browser.new()
ie.goto("http://www.mozilla.com/firefox/")
ie = Browser("title:=/Firefox.*/")
ie.Link("text:=/.Download Firefox./", "index:=1").click
ie.Dialog("title:=/File Download.*/").Button("text:=Cancel").click
1) File Download dialog prompting the user to select whether to download, save or cancel
2) File Download dialog with information about the dialog itself.
It looks like there is a race condition here and depending on which dialog wins the race, test fails or passes.