Are Wait related methods (Wait, WaitChild, WaitAliasChild, WaitProperty) working in Keyword Test?
Hello,
I use Keyword Test in TestComplete to test web applications. Usually when I record a new Keyword Test, the test will automatically record rows to Wait for certain web pages to load. In a normal situation, everything is working well. But sometimes, when the web application is slow (take longer response time to load the next page), I will have to increase the wait time or put wait related commands to wait for the page to load before doing something else.
I have a situation like this in Keyword Test:
(the script is doing something else .....)
Row 1 -> WebPageA.wait
Row 2 -> WebPageA.button1.click
(the script is doing something else .....)
When the web site is slow, the script always fails in Row 2 and the error message is "WebPageA" is not exist. I set the wait time to big numbers and my project default wait timeout is also a big number but it doesn't seem to be waiting at all.
I have tried Wait, WaitChild, WaitAliasChild, WaitProperty in this situation but none of them worked. So I ended up always had to comment out all these Wait commands and replaced with Delay command. But Delay is not a good way to do in this situation. I did a lot of research and it seems everyone else has suggested to use these Wait commands but they just don't work for me. I also tried the Wait on the mobile app that I am testing and it is also not waiting at all. Not sure what I am missing here. So far, I only tried on Keyword Test and haven't got a chance to try in a script yet but it should not make any difference. Any help is appreciated.