RadTabControl.AdditionalContent UI automation not working

2 posts, 0 answers
  1. Michel
    Michel avatar
    1 posts
    Member since:
    Sep 2015

    Posted 09 Sep 2015 Link to this post

    In our product we have some buttons in the RadTabControl.AdditionalContent.

    These buttons can not be found by UI automation tool, also checking with Inspect.Objects these button and the AdditionalContent are not found.

    Is this supported by Telerik or do we do something wrong.

    We are running on Windows 7, using telerik WPF version Wpf.40.2014.2.0729.

     Snapshot of the code:

               <telerik:RadTabControl.AdditionalContent >
                    <StackPanel Grid.Row="2" Margin="10,2" Orientation="Horizontal" HorizontalAlignment="Right">

                        <!-- Help -->
                        <Button Name="btnHelp" 
                                Command="{Binding Path=ShowHelpCommand}" 
                                Style="{StaticResource HelpButtonStyle}" 
                                Visibility="{Binding HelpButtonVisibility}"
                                ToolTip="{Binding Source={x:Static frameworkResources:XmlTextProvider.Content},XPath=Help/@Header}" />

                        <!-- Logout -->
                        <Button Name="btnLogout"
                                Command="{Binding Path=LogoutCommand}" 
                                Style="{StaticResource LogOutButtonStyle}" 
                                ToolTip="{Binding Source={x:Static frameworkResources:XmlTextProvider.Content},XPath=Logout/@Header}" />





  2. Peshito
    Peshito avatar
    493 posts

    Posted 12 Sep 2015 Link to this post

    Hi Michel,

    We are unaware of such limitation with our control. It is most likely related to the automation tool you have been using. Using Telerik Test Studio to locate the elements worked fine for me. In case you are using Coded UI to test the UI you might be experiencing a known issue with the with the deep hierarchy level the element. If this is so, in order to fix this please read the "How to test deep hierarchy controls using Coded UI Test in WPF?" where the problem is described in details. Shortly you will need to edit the MaxLevelsForItemContainer key in CodedUITestBuilder.exe.config/MTM.exe.config file.

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. DevCraft R3 2016 release webinar banner
Back to Top