I am attempting to fire a click event on a WinButton in the IE “File Download - Security Warning” dialog with QTP. However, there is slight problem: IE seems to know that I am not physically clicking the mouse, but instead I am interacting with the XMLDOM to get at it.
IE has a security setting that allows one to let IE automatically prompt for a file download. This usually occurs when the page you open attempts to open a file and without the interaction of the user (via mouse or whatever). If I set my IE to allow this, then it works fine. Trouble is that I don't want to change the settings on every machine I use to test. Some people wouldn't like their settings altered either.
QTP does allow “low-level” recording, and this works. It simulates the actual mouse movements and clicks (via interrupt rather than XMLDOM) to get some more approximating reality. However it is heavily coordinate based, and I don't want to rely on it. I expect it break every time I try to use it, that sort of thing.
I am trying to find a better solution and will post it when I do....