Contributions
Re: WaitWindow is returning a ramdom inactive window and not the top one
Hi I did the sugestions you give me. Altought, even when doing all the tests you sugest it didn't solve my problem. My problem is: I had a alert window over all my windows. I do the code to find the active windows (the alert), so I could close it. However, testcomplete is returning a closed ( and invisible) window. The software I'm testing is developed with delphi, and the alert is a application.messagebox alert. I need to close that alert! Does someone have a idea that could help-me? The code belowdoesn't helptoo. set wAlertaVenc = Sys.Process("central").WaitWindow("_TForm", "Atenção", 1,1000) If wAlertaVenc.Exists then Sys.Process("central").Window("_TForm", "", 1).VCLObject("OK").Click end if1.4KViews0likes1CommentWaitWindow is returning a ramdom inactive window and not the top one
After I instaled the last version of testcomplete (and the sugested update) I'm having error at all my project.I'm having to review all the work I did with the trial version (while I waith the company buy testcomplete). The problem is occurs when I call the function WaitWindow. For windows without caption (title) . If there are not window active the testcomplete is returning a hiddem inactive window. And all my application is raising errors. I use this simples pattern set wAlertaVenc = Sys.Process("central").WaitWindow("_TForm", "*", 1,1000) If wAlertaVenc.Exists then Sys.Process("central").Window("_TForm", "", 1).VCLObject("OK").Click end if There are something I could do to avoid this error? there are any patch I could apply to solve this?1.5KViews0likes4Comments