Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
.Link() method is not getting executed in QTP 9.2
#1
Solved: 11 Years, 4 Months ago
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


Attached Files Image(s)
   
Reply
#2
Solved: 11 Years, 4 Months ago
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
Reply
#3
Solved: 11 Years, 4 Months ago
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
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Select case is not being executed in a Function Anupama 1 1,612 05-25-2018, 11:15 AM
Last Post: Anupama
  click each web link in a page using Index or other method in QTP smeijer 13 24,715 04-29-2017, 04:53 PM
Last Post: kowshik
  .Object Method in QTP Shell 2 11,808 01-27-2011, 07:41 AM
Last Post: Shell
  How to find built-in method/function in QTP ytramu 1 6,457 11-08-2010, 03:56 PM
Last Post: KavitaPriyaCR
  qtp sometimes does not application link Jenny 1 1,731 08-13-2010, 07:24 AM
Last Post: basanth27

Forum Jump:


Users browsing this thread: 1 Guest(s)