Micro Focus QTP (UFT) Forums
QTP Unable to identify one of the Link when I script in DP - 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: QTP Unable to identify one of the Link when I script in DP (/Thread-QTP-Unable-to-identify-one-of-the-Link-when-I-script-in-DP)



QTP Unable to identify one of the Link when I script in DP - RameshKrishnan - 05-24-2012

QTP Unable to identify one of the Link when I script in DP.

Code:
with Browser("title:= Login to KMAPI")
.Page("title:= Login to KMAPI").WebEdit("htmlid:=bemsId,htmltag:= INPUT").Set "5555"
.Page("title:= Login to KMAPI").WebButton("name:=Login").Click
.Page("title:=Knowledge Management and Process Improvement").Frame("name:=instancesFrame").Link("name:=Business Support,href:=http://172.16.27.221:9080/KMAPI/createBSForm.mth").Click
.Page("title:=Knowledge Management and Process Improvement").Frame("name:=instancesFrame_2").WebEdit("name:=bsTitle").Set "Test BS Full Flow"
.Page("title:=Knowledge Management and Process Improvement").Frame("name:=instancesFrame_2").WebEdit("name:=estimatedHours").Set "11"
.Page("title:=Knowledge Management and Process Improvement").Frame("name:=instancesFrame_2").WebButton("name:=Submit").Click
.Page("title:=Knowledge Management and Process Improvement").Frame("name:=mainFrame").Link("name:=My Work Items").Click
.Page("title:=Knowledge Management and Process Improvement").Frame("name:=myWorkItemsFrame").Link("name:=Business Support").Click
.Page("title:=Knowledge Management and").Frame("name:=myWorkItemsFrame").Link("name:=Complete and Close Request").Click
end with
If  Browser("title:= Business Support_3").Page("title:=Business Support").Exist(5)Then
    Reporter.ReportEvent micPass,"Business Support ","Page Opened"
End If
Browser("title:= Business Support_3").Page("title:=Business Support").Image("class:=calender").Click 8,11
wait  5
Browser("title:= Business Support_3").Page("title:=Business Support").Image("class:=calender_2").Click 10,6
wait 5
Browser("title:= Business Support").Page("title:=Business Support").WebButton("name:=Close Request").Click

Issue : In the Above script I tried descriptive programming,here in 4 th line there is a Link ,which is not getting identifed while running the script.
Can you please give me a solution for this.I tried adding different properties still same issue.Can we do Indexing ?If so can someone please help me with script examples to identify link?


RE: QTP Unable to identify one of the Link when I script in DP - falvi - 05-28-2012

i am no expert, but are we not suppose to write the properties separately?
e.g.

Code:
.Page("title:=Knowledge Management and Process Improvement").Frame("name:=instancesFrame").Link("name:=Business Support" , "href:=http://172.16.27.221:9080/KMAPI/createBSForm.mth").Click