Forum Discussion
Mia
12 years agoContributor
Hey guys,
I tried to apply both pseudo-codes on my application and both are not working properly.
- the case with objWnd.Exists always throws an error message, becuase when the window is actually closed, TestComplete can't find this object and the test fails.
- the same issue applies on the second case with WaitWindow, with slight difference - it takes longer before the test fails, the cycle never ends...it continues even after the window is closed.
I think this is pretty often test flow: e.g., Open some wizard > make some changes > Press Save > Wait for closing/saving > do another job
So far I am alternating the "Wait for closing" with Delay() function, but it is soo unreliable. Is there any other way?
Thanks
I tried to apply both pseudo-codes on my application and both are not working properly.
- the case with objWnd.Exists always throws an error message, becuase when the window is actually closed, TestComplete can't find this object and the test fails.
- the same issue applies on the second case with WaitWindow, with slight difference - it takes longer before the test fails, the cycle never ends...it continues even after the window is closed.
I think this is pretty often test flow: e.g., Open some wizard > make some changes > Press Save > Wait for closing/saving > do another job
So far I am alternating the "Wait for closing" with Delay() function, but it is soo unreliable. Is there any other way?
Thanks