eykxas
11 months agoRegular Contributor
Ignoring Runtime Error
Hi !
How can I ignore Runtime Errors ?
In my project, sometimes TestComplete (or TestExecute) is a way too fast for the webapp, and when the code tried to do some thing (like toArray() on an object) obviously it cause an error.
The tricky part is that I can't use delay or wait or anything that might take time. I have a fixed window of time that I cannot exceed.
FindAll returns an array of the tested objects, otherwise it return an empty array, which will have a length of zero.
Within your function, you should also check that page actually exists, so that the method FindAll works.
Also, be careful when reassigning variables ar = ar.toArray()