public static IEnumerable<AutomationElement> GetAll(AutomationElement window) { var res = window.FindAllChildrenByClassName("DataGrid"); return res; }