02-03-2012, 10:51 PM
Hi All,
I'm facing a problem in QTP using GetROProperty for extracting text from Button and Static field in Windows Application.
Problem Faced:
String which is expected to be displayed in Button and static field is not displayed properly(it is having string cut) in UI. But on using GetROProperty it returns the expected text eventhough string cut is present in UI.
Other alternative is GetVisibleText.But when GetVisibleText is used also some portion of the text which is not displayed in UI is returned.Also QTP help file itself mentions not to use GetVisibleText as it return value may differ across platforms.
Can anyone help in sorting this out?Any other alternative?
Thanks in Advance.
I'm facing a problem in QTP using GetROProperty for extracting text from Button and Static field in Windows Application.
Problem Faced:
String which is expected to be displayed in Button and static field is not displayed properly(it is having string cut) in UI. But on using GetROProperty it returns the expected text eventhough string cut is present in UI.
Other alternative is GetVisibleText.But when GetVisibleText is used also some portion of the text which is not displayed in UI is returned.Also QTP help file itself mentions not to use GetVisibleText as it return value may differ across platforms.
Can anyone help in sorting this out?Any other alternative?
Thanks in Advance.