Error on WPF elements - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: UFT / QTP Others (https://www.learnqtp.com/forums/Forum-UFT-QTP-Others) +--- Thread: Error on WPF elements (/Thread-Error-on-WPF-elements) |
Error on WPF elements - Autobot - 09-30-2014 First post, sorry it's a question. Been a long time lurker and finally needed to post my own question. I've been having an issue with spying in on an application using WPF with UFT 11.53. The application used to work but after a recent upgrade to DevExpress 14 the application crashes when spying in on it with the following exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object. Code: at Mercury.QTP.Avalon.Wrappers.SelectorItemObjectWrapper.CreateAutomationPeer() I can still run some of the test that was written before the upgrade and it doesn't cause the application to crash, but quite a few of the elements have changed and I can't seem to object spy them any more. Any help would be appreciated. *Update* I seem to have narrowed it down to the issue being with DevExpress.Xpf.WindowsUI.PageView. Anybody have any issues with this component before? RE: Error on WPF elements - nayanpp - 12-09-2014 I am also looking above issue solution. Let me know if anybody found. When i move my mouse in object i got exception error and must shut down application. RE: Error on WPF elements - Autobot - 12-09-2014 I'm not 100% on this but starting to look like this might be related to a missing AutomationPeer class. I've found this guide on creating AutomationPeers for custom controls but haven't had a chance to chat to the devs to try it out. Here's the guide if you want to give it a try, please let me know how it goes. |