Micro Focus QTP (UFT) Forums
Selecting a Link - 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: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Selecting a Link (/Thread-Selecting-a-Link)



Selecting a Link - mv8167 - 12-02-2011

I am having issues finding links. Sometimes, my code seems to find links every time. The next time I run my script, the same or different links are not found. On a third run some links are found while other previous found links are not being found.

Is there a better way to always look for a link that I will “Click”.

Such as using:

Code:
If Browser("Wisdom").Page("Wisdom IA").Frame("parent").Link("html tag:=" & "A", "innertext:="& ReportName, "abs_x:="&absX, "abs_y:="&absY).Exist(2) Then
    Browser("Wisdom").Page("Wisdom IA").Frame("parent").Link(("html tag:=" & "A", "innertext:="& ReportName, "abs_x:="&absX, "abs_y:="&absY).Click

see attachment

;-)