Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Alternative for GetVisibleText method???
#1
Solved: 11 Years, 3 Months, 1 Week ago
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.
Reply
#2
Solved: 11 Years, 3 Months, 1 Week ago
Hi Amit,
Why don't you try with Text Output Checkpoint. I had the same scenario and i used the mentioned above.

Regards,
ManojithSmile
Reply
#3
Solved: 11 Years, 3 Months, 1 Week ago
Is there any other way to do the required operation.
Reply
#4
Solved: 11 Years, 3 Months, 1 Week ago
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
Reply
#5
Solved: 11 Years, 3 Months, 1 Week ago
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...
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  QTP 11 - GetVisibleText not getting text correctly in windows7 from Activex Pallavi 1 5,854 03-14-2014, 02:47 PM
Last Post: venkatesh9032
Exclamation Alternative for Wait Statement Veekay 2 8,528 03-20-2012, 07:13 PM
Last Post: swathi
  Alternative for wait statement. adpbinu 4 7,470 02-05-2010, 01:33 AM
Last Post: adpbinu
  What is a Method in QTP and how many types are method r there in QTP? vidyabr 1 4,425 07-28-2008, 02:14 PM
Last Post: surya_7mar

Forum Jump:


Users browsing this thread: 1 Guest(s)