Ame
Ame

Reputation: 1

TestComplete object not found errors

I am new to TestComplete.

I watched a couple of videos they have but when I tried the same thing it gives me error about not finding the objects. All I did was recorded going to a web app and logging into it.

Has anyone faced this kind of problem and if so any pointers to resolve this issue will be appreciated.

Thanks!

Upvotes: 0

Views: 1825

Answers (3)

Zakir Sayed
Zakir Sayed

Reputation: 200

Use object browser to highlight any object. You can also script to check the Exists property before performing any action.

For objects which I am not sure would exists, I usually user Wait with timeout and then check the Exists property to avoid Object not found error.

Upvotes: 0

Dmitry Nikolaev
Dmitry Nikolaev

Reputation: 3918

The help system of TestComplete 8 contains a great topic describing all possible causes of the 'Object not found' issue and suggesting ways for debugging and solving them: Handling the 'Object Not Found' Errors.

Upvotes: 0

Alex
Alex

Reputation: 587

There is no magic solution to such situations, other than investigating the situation to find out why the expected recognition criteria do not match the actual ones. There is a recording of a recent webinar about Name Mapping - it describes some situations when objects are not found, and gives some good advices on the possible solutions: http://www.automatedqa.com/products/testcomplete/screencasts/reliable-tests-for-dynamic-objects/

Anyway, you will need to make some investigations to determine the root cause of the situation before you can try applying some suggestions.

Good Luck.

Upvotes: 1

Related Questions