Forum Discussion

eykxas's avatar
eykxas
Regular Contributor
10 months ago

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