This is a migrated thread and some comments may be shown as answers.

RadTabControl.AdditionalContent UI automation not working

1 Answer 117 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Michel
Top achievements
Rank 1
Michel asked on 09 Sep 2015, 09:12 AM

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" 
                            HorizontalAlignment="Right" 
                            VerticalAlignment="Top" 
                            Margin="0,0,10,0"
                            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"
                            HorizontalAlignment="Right"
                            VerticalAlignment="Top"
                            Margin="0,0,0,0"
                            Command="{Binding Path=LogoutCommand}" 
                            Style="{StaticResource LogOutButtonStyle}" 
                            ToolTip="{Binding Source={x:Static frameworkResources:XmlTextProvider.Content},XPath=Logout/@Header}" />

                </StackPanel>
            </telerik:RadTabControl.AdditionalContent>​

 

 

 

1 Answer, 1 is accepted

Sort by
0
Peshito
Telerik team
answered on 12 Sep 2015, 08:16 AM
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.

Regards,
Peshito
Telerik
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
Tags
General Discussions
Asked by
Michel
Top achievements
Rank 1
Answers by
Peshito
Telerik team
Share this question
or