My application has RadSplitContainers in it. They are created dynamically. They do not have unique properties. So, I am not able to test my application using Coded UI Test.
Can you suggest how to provide unique Names for these RadSplitContainers?
You can try using custom "DefaultGeneratedItemsFactory" where you can ovveride the CreateSplitContainer() method and there to set name or automation id to the currently created SplitContainer:
public class CustomGeneratedItemsFactory : DefaultGeneratedItemsFactory
{
int counter = 0;
public override Telerik.Windows.Controls.RadSplitContainer CreateSplitContainer()
{
var currentContainer = base.CreateSplitContainer();
Also you can see how the DefaultGeneratedItemsFactory can be used in our WinFormsInsideDocking github SDK example.
Nevertheless if this does not work for you it would be great if you can provide us with more information on your scenario.
Regards,
Georgi
Telerik
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.