Forum Discussion
How exactly is your app utilizing TestComplete as an object spy? Do you mean that you are using the TestComplete Object Spy to look at your app?
- leonardopscruz6 years agoNew Contributor
My app has a control which user can drag and drop into any window. When dropping, then we run the Sys.Desktop.ObjectFromPoint to identify which object it is based on the coordinates where it was dropped.
So, basically, when we utilize the Sys.Desktop.ObjectFromPoint method passing the coordinates of an object within the Windows Security popup, then an exception is raised as that method is not able to identify the window we're spying (as picture in my first message).
Also, I realized that when opening TestComplete, then opening a project, then clicking the 'Display Object Spy' button at top of TestComplete, and then draging and dropping the target into any object from same Windows Security popup, then the object is recognized and works as expected. So the problem happens only when we are spying the object via a customized app, utilizing the Sys.Desktop.ObjectFromPoint method. And just to remember that the error is raised by the ObjectFromPoint method, not by my application code itself.
- tristaanogre6 years agoEsteemed Contributor
Verify the co-ordinates are correct. It's entirely possible that those co-ordinates, when selected, aren't finding anything at that point that can be recognized as an on screen object of some sort.
- leonardopscruz6 years agoNew Contributor
The coordinates seems to be fine, as it is poiting exactly to where I dropped (I double checked). Any other idea?
Related Content
Recent Discussions
- 2 hours agosimonaferrara
- 11 hours agoSubhraDas
- 2 days agotramuntana