| || |
Is Window.GetVisibleText gone in QTP v9?
I have been experimenting with the Window("object class:= ConsoleWindowClass") and have discovered that the GetVisibleText no longer works with QTP v9. Here's my code:
Set telnetWindow = Window("object class:= ConsoleWindowClass")
strTelnetBuffer = telnetWindow.GetVisibleText()
The result is a blank buffer. Any thoughts as to what could be causing this??
Re: Is Window.GetVisibleText gone in QTP v9?
Your suspicions are right - it's no longer available in v.9. I think this was buried in the release notes.
(Later edit) I found the section in the release notes:
Instead of GetVisibleText and GetTextLocation-Use the GetROProperty method or the Object property to retrieve the value of the text (or equivalent) property from an object in your application instead of GetVisibleText and GetTextLocation methods.