Micro Focus QTP (UFT) Forums
Unable to click 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 Regular Expressions (https://www.learnqtp.com/forums/Forum-UFT-QTP-Regular-Expressions)
+--- Thread: Unable to click a link (/Thread-Unable-to-click-a-link)



Unable to click a link - swathik - 08-14-2013

Hi,

I want to click a link through the following code. But i'm getting general run error.

Code:
Browser("SAP - []").Page("SAP - []").SAPFrame("SAP - []_2").Link("text :=Transaction ID", "html tag:=A","index:=1").Click

But QTP OR recognizes the object with the same properties. I attached here the image of the look of the object in OR.

[attachment=1239]


RE: Unable to click a link - basanth27 - 08-15-2013

Try this, There was a space after text and the :=
Code:
Browser("SAP - []").Page("SAP - []").SAPFrame("SAP - []_2").Link("text:=Transaction ID", "html tag:=A","index:=1").Click