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
Hi Leandro,
Thank you for your Reply. I tried the same what you had mentioned but the object returned empty. I tried to use the Find method to get the object using AutomationId property, but was not able to find the same. I then tried to use the Find method with the name property and i was able to get the correct object. AutomationId property is an attached property in .net and it is also not visible in the object spy properties. So I believe FInd method can only find the objects which are shown using the Object Spy. Could you please let me know if there is any other way by which we can find the object using Automationid property as our developers use only AutomationId property to uniquely identify the objects. Your valuable suggestions would be a great help to me.
- sree20119 years agoContributor
Hi Leandro,
Could you please help me on this.
Related Content
Recent Discussions
- 12 hours agosimonaferrara
- 21 hours agoSubhraDas