From the MSDN document (about AutomationId, it states that
"Clients should make no assumptions regarding the AutomationId values
exposed by other applications. AutomationId is
not guaranteed to be stable across different releases or builds of an application.".
I think I understand the first part - we cannot assume that the same value of AutomationId is not being
used by other application. However, I'm more concern about the second part. I need an AutomationId which is unique and remains the same for different builds or releases
consistently so
that we can use it as the primary ID in our automation test. Can anyone explain to me a bit
detail what does it mean? Can I assume that the AutomationId will not be changed during build?
Thank you!
Richard
MSDN reference: http://msdn.microsoft.com/en-us/library/windows/desktop/ee684083.aspx