Forum Discussion
hi,
after having mapped the window and the button that closes it, couldn't you use a "WaitAliasChild" function (that you have in SmartBear's samples) ?
WaitAliasChildFunction(Alias, Object, Timeout in ms);
for example, your window is mapped as following :
Aliases.MyExe.MyWindow
you should call the method like this :
if (WaitAliasChildFunction(Aliases.MyExe, 'MyWindow', 20000)) then
Aliases.MyExe.MyWindow.BtnClose.Click();
it will waits for 20 seconds the window, if it appears within this time it will closes it by the BtnClose button.
- snie110 years agoContributor
Thanks.
The message shown like "Waiting for Window: WndClass - "#32770", WndCaption - "xxxxx"".
But actually the window is there already, I have tried using alias and full name too, no help.
Even if it can't handle this window, or can't find this object, just look it as an overlapping window or unexpected window, at least allow me doing the next things. The problem is it stopped there any hold the whole execution. :(
I have tried to give it a whole night to wait, nothing changed the next morning.