Forum Discussion

eykxas's avatar
eykxas
Frequent Contributor
3 months ago
Solved

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 obj...
  • rraghvani's avatar
    rraghvani
    3 months ago

    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()