Micro Focus QTP (UFT) Forums

Full Version: How to click on a dynamic link on a website
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I was working on a project where I have to go to CNN.com and click on the first headline that appears everyday. Now the headline changes everyday. So all its properties also change daily (properties such as inner text, outer text, value). I tried using the constant properties such as html tag and micclass. But there are hundreds of links on the home page and I just need to click the very first link under headlines/latest news

How can I click on dynamic links?
Please show with the help of screenshot exactly which link you wish to click.
Hi Ankur,

Below is the screenshot of the application and highlighted is the dynamic link that I need to click. This link changes everyday.

[img]file:///C:/Users/Ranjanabh/Desktop/Image.jpg[/img]

Thanks

Hi Ankur,

Below is the screenshot of the application and highlighted is the dynamic link that I need to click. This link changes everyday.

[Image: lXiAAc2]

Thanks

You can try this link

[Image: lXiAAc2.jpg]
one way to use is visual relation identifier.
Add Webelement object "the latest" in relation object and above in relation details window.