Application loosing focus?
I have a problem that I have noticed over the past few weeks but it is not happening consistently. I launch an application from a URL which results in the login window of the application appearing. More often than not this window appears in front of the internet window which is the behaviour that I want. But recently, when the login window is called, it appears behind the internet window resulting in my tests failing. It happens intermittently.
Has anyone encountered the same issue?
Is there any way for me to force the login window to appear in front and be the main focus?
I am using visual tests within Test Partner Version 6.3.0 Build 183.
Re: Application loosing focus?
To catch these quirks, I like to set 'minimize on playback' to no. It may seem noobish but I use the activewindow method inside a do loop.
Without seeing my code, I think I look for activewindow.caption then .attach to the window I need.
I haven't had much luck with using twindow.activate or .setfocus but maybe you will.