Problem If you are reading this blog most likely means you have been through the same unsuccessful experience I had of trying to get a WPF ItemsControl control via automation ID using TestStack.White API (v0.13.3) in order to carry on some UI test automation.
1 |
public ObservableCollection<string> DummyDataSource { get; set; } |
1 2 3 |
<ItemsControl x:Name="TheItemsControl" AutomationProperties.AutomationId="TheItemsControlId" ItemsSource="{Binding DummyDataSource}"/> |
Acquiring a WPF ListBox via automation ID using White is simple job.…