Forum Discussion
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
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.
- rraghvani3 months agoChampion Level 3
If you're running the automation on a remote desktop, then does your remote desktop have an active session? I suggest you read through https://support.smartbear.com/testcomplete/docs/testing-with/running/via-rdp/index.html
If you are doing UI automation, you need to have an active session and desktop must not be locked.
How is the automation launched i.e. are you using TestComplete, TestExecute or SessionCreator? Are you using a batch file? What are the commands?
Related Content
- 4 years ago
Recent Discussions
- 17 hours ago
- 7 days ago
- 10 days ago