Forum Discussion
- AlexKarasChampion Level 3Hi Nigel,
ObjectFromPoint() method might be the thing that could help... - AlexKarasChampion Level 3Hi Nigel,
I am far not sure if it is possible to convert one TC wrapper object to another one, but you may try to play with the objects' priority (http://support.smartbear.com/viewarticle/33238/) and set the NativeSLObject before the NativeUIAObject. Hope this might help... - TanyaYatskovskaSmartBear Alumni (Retired)
Hi Nigel,
Is Sys.Desktop.ActiveWindow() what you need?
- googleid_107989Occasional ContributorI'm thinking of a Hit Test... ie: "What is the top-most control at location x:230 y:430"
or.. what control would be clicked on it I clicked at x:230 y:430?
I could do it by itterating over all controls checking if the point is within the bounds of the control.. then do something to compare all matched leafs on the tree to work out which is on top.. but I assume TestComplete does this already...
Is there a function for it?
Cheer
Nigel - googleid_107989Occasional ContributorThat is exactly what I was looking for!
I am testing a silverlight app however and this command gives me the SLObject when really want the UIAObject . Is there a way to get the UIAObject from the SLObject?
Related Content
- 6 years ago
- 4 years ago
Recent Discussions
- 6 days ago
- 6 days ago
- 9 days ago