-
Junior Member
Text link changes dynamically
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?
-
Expert Member
Re: Text link changes dynamically
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.
-
Junior Member
Re: Text link changes dynamically
Use text checkpoint . Your problem will be solved.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules