Environment: use the TestFramework with MS Excel Wpf XLL Addin the Excel process is successfully attached like: Manager.Current.ConnectToApplication(excelProc); an open WpfWindow can be easily accessed like: wpfWindows.First().Window.Close() But the command "wpfWindow.Find.AllByType<Button>()" causes the test hanging with the following exception: Die UnitTestProject1.TelerikXUnit2.TestSparks-Testmethode hat eine Ausnahme ausgelöst: System.NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.