public override AutomationElement GetFirstResult(Query query, TimeSpan timeout) { Debug.WriteLine("FirstResult - " + query, "UIAutomation-SearchEngine-Default"); var root = query.Root; var scope = query.Scope; var conditions = query.Conditions; return (AutomationElement) ExecuteGetResult(() => root.FindFirst(scope, conditions), timeout); }