Micro Focus QTP (UFT) Forums
.Link() method is not getting executed in QTP 9.2 - 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: .Link() method is not getting executed in QTP 9.2 (/Thread-Link-method-is-not-getting-executed-in-QTP-9-2)



.Link() method is not getting executed in QTP 9.2 - Rajashekar Gouda - 02-05-2008

Hi All,

I was writing DP for a link on my application and found this issue for QTP 9.2
I wrote the DP to click a link "1*"by using QTP 9.2.When i execute the statement it was throwing error "Cannot Identify the Object"[Link]" [of class Link]

Folling is the DP i wrote
Code:
Browser("name:=REQUEST SUMMARY").Page("title:=REQUEST SUMMARY").Link("name:=1* ").Click

Please see the attachement
can any one pls help me.

Regards
Raj


RE: .Link() method is not getting executed in QTP 9.2 - srihaka - 02-05-2008

Hi Raj,

First check the class name from ur object repository ir if u have added it in ur object repositary if not add it.
i think [ correct me if m wrong ] , ur script will say as WEBLINK(1), if u r running a web application.
also once u r done with OR...try recording only the link part in Low-Level recording.

Thanks,
Sri


RE: .Link() method is not getting executed in QTP 9.2 - Rajashekar Gouda - 02-05-2008

Sri..Thanks for ur reply.

This Descriptive Programming(DP), there is no need to store any property of object in Object Repository.

I corrected the code and now it is working fine.
The corrected code is as follows
Code:
Browser("name:=REQUEST SUMMARY").Page("title:=REQUEST SUMMARY").Link("name:=1.* ").Click
It is working fine

Raj