Micro Focus QTP (UFT) Forums
How to click on a dynamic link on a website - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: How to click on a dynamic link on a website (/Thread-How-to-click-on-a-dynamic-link-on-a-website)



How to click on a dynamic link on a website - Geekgirl - 11-22-2013

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?


RE: How to click on a dynamic link on a website - Ankur - 11-22-2013

Please show with the help of screenshot exactly which link you wish to click.


RE: How to click on a dynamic link on a website - Geekgirl - 11-22-2013

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]


RE: How to click on a dynamic link on a website - Jay - 11-28-2013

one way to use is visual relation identifier.
Add Webelement object "the latest" in relation object and above in relation details window.