Geeks With Blogs

News QTP and Stuff
Theo Moore Questions... Morphology? Longevity? Incept dates?

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....

Posted on Monday, July 17, 2006 12:45 PM | Back to top


Comments on this post: QTP: WinButton Click Event not true simulation of mouse click

# re: QTP: WinButton Click Event not true simulation of mouse click
Requesting Gravatar...
Thanks Man !!! I ran into this today and spent six hours wondering why click wasn't working. Thanks to your blog , I know now and I know the workaround :)
Left by Dayaz on Jun 07, 2007 4:12 PM

# re: QTP: WinButton Click Event not true simulation of mouse click
Requesting Gravatar...
why do i can't see the answer? :-(
Left by keson on Apr 09, 2008 4:56 AM

Comments have been closed on this topic.
Copyright © Theo Moore | Powered by: GeeksWithBlogs.net