Micro Focus QTP (UFT) Forums
WPF dialog message text - 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: WPF dialog message text (/Thread-WPF-dialog-message-text)



WPF dialog message text - vipuna - 10-07-2011

Hello,
In QTP 11, win XP GetVisibleText was fetching me the message displayed in a WPF dialog.
In Win 7, GetVisibleText provides the title of the dialog box. I tried GetROProperties, GetTOProperties etc. No luck.
In object spy, WpfWindow has the dialog underneath which I see a Static with the name as the message displayed in the dialog. I have no means to get into the displayed message now. Only way I could see the message was
WpfWindow("Windowname").Dialog("Dialog Title").Static("Displayed message").GetVisibleText -> which provides the displayed message. This doesnt make sense since I am trying to find the displayed message itself through script. Please advice on any possible methods to get in there.
Thanks!!
FYI: I have all the required add-ins and patches for .NET and WPF.