-
How to set AutomationId for TreeViewItems in WPF
Recently I started to implement UI tests for a WPF application with White. I’m entirely new to WPF, so it wasn’t obvious to me how can I set the AutomationId of a TreeViewItem which is generated during runtime based on the contained object’s property. Here’s the solution: