MicWpfWindow from .NET AOM - 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 Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners) +--- Thread: MicWpfWindow from .NET AOM (/Thread-MicWpfWindow-from-NET-AOM) |
MicWpfWindow from .NET AOM - JozinSBazin - 08-08-2011 Dear all, I'm trying to load a basic object repository into .NET Visual Basic code. Mercury.ObjectRepositoryUtil is not available for some reason (I have QTP 10.00). There is, however REPOSITORYUTILLIb.ObjectRepositoryUtil, so I tried to use that. I need to do things like Code: Window("windowName").Activate Apparently, MicWpfWindow class has all the right methods. This may or may not be the thing to look for, I don't know. But obtaining a reference to a MicWpfWindow from the object repository is a bit problematic. It appears that the repository util contains a bunch of __ComObject's. But none of them casts to a MicWpfWindow or a WpfWindow interface. Could somebody advise me, please? Thanks! PS. I have imported QTAutomationAgent.exe REPOSITORYUTILLIb.dll Mercury.WpfPackage.Interop.dll WpfPackage.dll QTApplicationObj.dll QTApplicationObjLib.dll I have tried the following: Code: Dim orep As REPOSITORYUTILLib.ObjectRepositoryUtilClass |