This project is read-only.

What is AutomationId?

Oct 21, 2010 at 10:00 AM


I use e.g. listInMainScreen = mainAppWindow.Get<ListView>(SearchCriteria.ByAutomationId("11229" )) for finding

a listview. But sometimes, this automationId will be changed. The application is installed and not changed.

Why ? What is the automationId, did it generate in the runnung of programm.



Oct 21, 2010 at 10:47 AM
Edited Oct 21, 2010 at 11:00 AM


the automationID should be set by the developer, or is set automatically by creating a control. Windows standard dialogs have a fixed automation ID (mostly a number)

if the automation ID is not fixed, the developer generates these ID dynamically which is very bad.


automation ID's should be ever fixed, never depends on culture and should be unique in there context. ( I have discussed theis many times with our developers :) )



Oct 21, 2010 at 10:53 AM


Thanks very much for your answer.