Micro Focus QTP (UFT) Forums
GetVisibleText not retrives text from the object corretcly - 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: GetVisibleText not retrives text from the object corretcly (/Thread-GetVisibleText-not-retrives-text-from-the-object-corretcly)



GetVisibleText not retrives text from the object corretcly - goldenjeeva - 10-02-2013

The Test Application to be automated is a window based application (Ui-Rendering) running in Windows XP Platform.
Recently, the license server was upgraded to UFT which not supports for QTP 10. So we have installed QTP 11 in POS machine. We are facing following issues with QTP 11

Issues:
1. Syntax getvisdbletext is not retrieving the entire page content, the hierarchy used to retrieve the text is
Code:
VbWindow(“vbMain”).ActiveX(“acxRTView”).WinObject(Object_Name).GetVisibleText
We have also tried by changing all the options under OCR settings, still GetVisibleText is not giving the required text from the POS application.

GetVisisbleText gives the same result for the options (First Windows API then OCR, First OCR then Windows API, Only Windows API) and QTP displays unrecoverable error when Text recognition mechanism is selected as “Use Only OCR”.

Note: we are facing this issue only with QTP 11 adn not with QTP 10
Please help me in resolving this issue..