ringraham
10 years agoContributor
How to continue script until polling event (via timer) determines script should stop?
I would like to have my script continue running until a given event has occurred. I have a timer event that polls every 10 seconds. When it finds that a given button has been reenabled, I would like the script to then close the application. I have tried to put a delay at the end of the main script, but this just causes TestComplete to hang. If I remove the timer event, the delay works as expected.
I am also open to other suggestions on how to continue a script until a given event occurs. Thanks in advance.
I think I got this time. Please, try this:
while ( ! myRewindButton.Enabled || TimeOutNotReached )
{
}
Let me know if that helps.
Regards,
Leandro de Araújo Souza