Results 1 to 3 of 3

Thread: Text link changes dynamically

  1. #1
    Junior Member
    Join Date
    Oct 2007
    Answers
    1

    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?


  2. #2
    Expert Member
    Join Date
    Oct 2007
    Answers
    375

    Thumbs up 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.


  3. #3
    Junior Member
    Join Date
    Oct 2007
    Answers
    5

    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
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact