05-24-2012, 09:05 PM
QTP Unable to identify one of the Link when I script in DP.
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?
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?