m_essaid
11 years agoValued Contributor
Waiting for a window / "the object does not exist"
Hello,
I have a software that makes batchs that could be from 10 seconds long to several minutes.
I put a property checkpoint right after this batch.
The problem is that i have, when running the test, the message "object does not exist". The object is a window with an "ok" button that indicate the end of the batch.
So I can't put a specific timeout, the waiting time could be changing.
How could I make Test Complete wait for a specific object to exists ?
Thank you very much
I have a software that makes batchs that could be from 10 seconds long to several minutes.
I put a property checkpoint right after this batch.
The problem is that i have, when running the test, the message "object does not exist". The object is a window with an "ok" button that indicate the end of the batch.
So I can't put a specific timeout, the waiting time could be changing.
How could I make Test Complete wait for a specific object to exists ?
Thank you very much
- Hi Mehdi,
For such situations, we prefer using WaitAliasChild because:
- the waiting time is a maximum so if the object appears earlier it will be acknowledged,
- if the object is not found at max time, no error is raised
Please checkout WaitAliasChild
Sincerely