Interview Questions   Tutorials   Discussions   Programs   Videos   

QTP - How to get Links count in an web application, without descriptive programming?




275
views
asked marvit August 21, 2014 06:19 AM  

How to get Links count in an web application, without descriptive programming?


           

1 Answers



 
answered By Dharma   0  

Set oDesc = Description.Create()
oDesc("micclass").Value = "Link"
Set Lists = Browser("Google").Page("Google").ChildObjects
(oDesc)
NumberOfLists = Lists.Count()
linkcnt = 0
For i = 0 To NumberOfLists - 1
linkcnt = linkcnt+1

Next
msgbox linkcnt
flag   
   add comment

Your answer

Join with account you already have

FF

Preview


Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!

Alert