Showing results for 
Search instead for 
Did you mean: 

Help With Object Not Found Error

Occasional Contributor

Help With Object Not Found Error


I do QA for a desktop application. This application has UI threads that are sometimes slow, which I believe is causing our nightly Test Complete tests to fail with "the object does not exist" errors.


Some important notes:
- In the screenshots of the errors, I can see the button/window/object which indicates that it exists, however TestComplete can not find it
- TestComplete keeps searching for the object, in a seemingly recursive fashion (see image below)



Is there a way to retry the last step that caused the logErrorHandler event? Maybe within the logErrorHandler code? Or is there some other solution to this?

I have tried using the Aliases.myApp.Refresh() within the error handler and it does not help. I would like to avoid using delays between steps as that would make our tests too long. I also would like to avoid writing custom code which write the test name into a file and re-runs the tests that way, since the errors would still show up and fail the Jenkins job, which is what we use to run the nightly tests on a VM.


Any help would be very much appreciated!

Community Hero



I would start from figuring out what causes the 'Catastrophic failure' error. It might be an indication of some crash of/in the tested application or in TestComplete itself.


You may also consider to use .WaitXXX methods (WaitWindow(), WaitAliasChild(), etc.) to dynamically wait until the sought for object becomes available.


  /Alex [Community Hero]
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
Community Manager

Thank you Alex!


Hi @ddguy, have you tried implementing the suggested approach?

Sonya Mihaljova
Community and Education Specialist

Learn SmartBear products in a fun and easy way and prove your knowledge!
>>Participate in the TechCorner Challenge today
Occasional Contributor

Hi Alex and Sonya,


I will implement this soon and try it out, thank you for the reply.!

New Here?
Join us and watch the welcome video:
Join TechCorner Challenge!
Want a fun and easy way to learn TestComplete? Try solving weekly TechCorner challenges and get into the Leaderboard!

Challenge Status

Get properties of a web page element

See replies!

Compare images using the Region Checkpoint

See replies!

Compare HTML table with Excel file and correct data in Excel file


How to execute remote test and obtain results via Test Runner REST API

Top Kudoed Authors