I have a link in my application whose text changes dynamically.
I want to test that whether the text of the link is equal to my desired text or not.
How can i do this using QTP?
Printable View
I have a link in my application whose text changes dynamically.
I want to test that whether the text of the link is equal to my desired text or not.
How can i do this using QTP?
Hi,
Store the desired output as String.
Use to GetROProperty to get the value of the string at runtime.
But take care if the name of the link keeps changing at runtime... I mean the logical name and not the text. If only the text changes, you can very well use the GetROProperty and get it done...
But if the logical name is changing, u will have to add the object dynamically to Object Map and use it further.:)
Use text checkpoint . Your problem will be solved.