Does anyone have successful experience using AutomationId property? I'm working with a developer now, who has assigned an automationId to an element, but I can't address that element.
Any comments will be appreciated.
P.S. It's WPF a application
Andrey QTP does not identify an object by all properties, usually a small subset of an objects properties are usable.
Dev would be better assign id's to "html id" as I've never know QTP to fail to recognise an object via it's html id.
My linkedIn Profile
I believe [AutomationId] is a custom property. you can access this through the attribute method. I don't have the exact code with me but search for attribute or runtime object
See here: http://msdn.microsoft.com/en-us/library/...tomationid.aspx
If you read the documentation for this property, it seems like even though its purpose is to uniquely identify tree elements, its not always the case. Can you try to use Index/Location along with the AutomationID and see if your code works?
Anshoo Arora Relevant Codes