Series: Subject: Topic:
Question: 191 of 1523

Count Links in Webpage

How to count Links in Webpage by using QTP?
Asked by: rsbkfamily | Member Since Jul-2008 | Asked on: Aug 22nd, 2008

View all questions by rsbkfamily

Showing Answers 1 - 1 of 1 Answers

Answered On : Sep 2nd, 2008

View all answers by akothuru

Code to Count Links in WebpageSet oDesc = Description.Create()oDesc("html tag").Value = "A" ' Get a collection of linksSet oLinkCollection = Browser(“name:=test”).Page(“title:=test”).ChildObjects(oDesc)ItemCnt = oLinkCollection.Count-1      Reporter.ReportEvent micPass, "No of Links in the wabpage: " & ItemCnt, "passed"

Login to rate this answer.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Related Open Questions



twitter fb Linkedin GPlus RSS


Interview Question

 Ask Interview Question?


Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.