Forum Discussion
Do you get any error messages?
I use the record function, i do not know what the "unable to obtain the item's rectangle" error means. Its never been an issue when starting test complete manually. And its always on different places which is weird.
Thanks for all the help and replies guys
- rraghvani3 months agoChampion Level 3
That error usually occurs when the object has most likely been destroyed and recreated, but TC is still referring to the old object. Refreshing TC cache/object tree may resolve the issue.
Is your UI always visible i.e. are you able to see the desktop, when this error occurs?
- MarcusBengtsson3 months agoFrequent Contributor
Hmm UI visible yes. But when run nightly it is run on a remote desktop. How do i refresh TC cashe/object tree? i would like to try that :)
- JDR25003 months agoFrequent Contributor
You can refresh some or all of the object tree using the Refresh method as described here: Refresh Method | TestComplete Documentation (smartbear.com)
Sys.Refresh will refresh everything. Being more targeted on a specific window or control will probably be more performant.
Related Content
- 4 years ago
Recent Discussions
- 17 hours ago
- 7 days ago
- 10 days ago