Micro Focus QTP (UFT) Forums
Alternative for GetVisibleText method??? - 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: Alternative for GetVisibleText method??? (/Thread-Alternative-for-GetVisibleText-method)



Alternative for GetVisibleText method??? - Amit Singh Chauhan - 01-22-2009

Hi All,

I have a problem in my script an error message occurs for read only exel sheet.

I am using GetVisibleText method to get the error message and then check it.
But this functions well for some iterations and not always gives correct value.

Is there any other way to get the text from error message window.

I have tried GetROproperty("text") it returns title of the window and not the text present in it.


RE: Alternative for GetVisibleText method??? - MR21135 - 01-22-2009

Hi Amit,
Why don't you try with Text Output Checkpoint. I had the same scenario and i used the mentioned above.

Regards,
ManojithSmile


RE: Alternative for GetVisibleText method??? - Amit Singh Chauhan - 01-22-2009

Is there any other way to do the required operation.


RE: Alternative for GetVisibleText method??? - MR21135 - 01-23-2009

Hi Amit,
As far as my knowledge there are three ways of capturing values from message window
1) Use GetVisibleText
2) GetROProperty("text")/GetROProperty("innertext")
3) Using Text Output Checkpoint/Standard Output Checkpoint


RE: Alternative for GetVisibleText method??? - Amit Singh Chauhan - 01-23-2009

Thanks,
I first two options are not working for me, but the last one is.

There is one more way to do this
use GetTextLocation method...