private WpfWindow GetFeedbackWindow() { var parentWindow = StudioWindow.GetParent(); var parentChildern = parentWindow.GetChildren(); var childCount = parentChildern.Count; childCount += 1; var findFeedbackWindow = parentChildern.FirstOrDefault(c => c.Name == "Feedback"); if (findFeedbackWindow != null) { return(findFeedbackWindow as WpfWindow); } throw new UITestControlNotFoundException("Cannot find feedback window"); }