UI Automation and TabControl

I have the following toolbar

<ToolBar x:Name="mainToolbar" HorizontalContentAlignment="Stretch" Style="{StaticResource mainToolBarStyle}" ItemsSource="{Binding ToolbarItems}" ItemTemplateSelector="{StaticResource toolBarItemTemplateSelector}" DataContext="{Binding}"> </ToolBar> 

If I put this toolbar in a grid, I can interact with it using an automation test using the user interface, as soon as I put it in TabItem, the encoded user interface will not be able to find it during playback.

just FYI, if I use simple controls like TextBox, ListBox and radio buttons, I DO NOT see this problem.

any ideas?

+4
source share
1 answer

This seems to be Microsoft's famous bug, they are working on a fix that will be released shortly. I spoke with their support team and they sent me this article to read.

Thanks to everyone who looked at my question and tried to help. Decoding of failure playback of coded testing UI - โ€œSearch may fail in ControlX, as a virtualized child may have it ...โ€

+2
source

All Articles