public string[] GetChildrenPaths() { var children = provider.GetChildren(); List <string> childrenPaths = new List <string> (children.Length); foreach (var child in children) { string elementPath = AutomationBridge.Instance.FindWrapperByProvider(child).Path; childrenPaths.Add(elementPath); } return(childrenPaths.ToArray()); }