Forum Discussion
Hi sree2011,
You could use one of the "Find" methods as described here: http://support.smartbear.com/viewarticle/55436/.
You can use to "root" of the application in the TestComplete's Object Browser to search for the desired object using it's Object ID. For example you could do the following:
var PropArray = ["AutomationId"]
var PropValue = ["MyID"]
Sys.process("My_Application").Find(PropArray, PropValue).
Let me know if that helps.
Regards,
Leandro de Araújo Souza
I am having a similar issue with automation ID in a WPF application. The developers attached an Automationid to an object, but I am not able to see it using an object spy or the "find" method. I would like to be able to call objects using automationid rather than mapping due the constant changes in the mapping. Any suggestions on how I will be able to see an automationid that is attached to an object?
- Colin_McCrae11 years agoCommunity Hero
Have you read this? ... http://support.smartbear.com/viewarticle/72878/
Specifically, the important notes and bit about methods and properties unavailable to TestComplete?
If this ID property is something your devs have added, I assume it would be a non-standard property of the object. There are a couple of settings you can alter to try and get to those, mentioned in the above article and links from it.