Object Not Found during test but can be Found after test has failed.
Hi,
I am having an issue with object recognition on pages in my web application.
During a test run I load a page and the first operation fails due to an object not found error message.
After the failure If I right click on the failed object and choose highlight, after a few seconds the object is highlighted correctly onscreen.
If I try to use a different object for my first test after my page has loaded it still fails and after failure the object can once again be correctly highlighted by TestComplete.
So it appears that no matter which object I choose to interact with first, after my page has loaded, TestComplete cannot find any object that is used for the first test on the page.
I have already manually re-mapped all of the objects on the page in question, checked for Dynamic IDs etc.
I have also changed the default "Auto-wait timeout" under the "Current Project Settings"to give TestCompelte more time to find the objects. (This appears to reset intermittently to default of 50ms, I'm not sure why.)
Any ideas on how to solve this problem, what is the cause?
Thanks
Tom.
Hi,
This could be a timing issue.
What you can do is, Try to identify a object which loads at last and Use WaitChild to wait until the Objects exists or Visible. Then perform your testing.
Also below might help you