public AutomationElementCollection GetSamplesInGroup(AutomationElement group) { group.Expand(); return group.FindAllChildren(ControlType.TreeItem); }