10-07-2011, 03:29 AM
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.
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.