How to find the number the number of Links, Brolken Links
in a webpage?

Answer Posted / rayudu

By using childobject method


Set linkDescObj=description.Create()
linkDescObj("micclass").value="Link"
Set Links=browser("Gmail: Email from Google").Page("Gmail -
Inbox -srikrishna").ChildObjects(linkDescObj)
NoOfLinks=Links.count()
msgbox NoOfLinks
For i=0 to NoOfLinks-1
linkName=Links(i).getROProperty("name")
msgbox linkName
Next

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is ODC and GDC?

7359


What is the significance of “action 0” in qtp?

580


Without integrating QC/Testdirector with QTP, is it possible to keep track of the defects?If yes how? How to export QTP results to an excel sheet?

1496


What is reusable action?

610


Hi we are using QTP9.0 for Seibel Application and this seibel application will give you a popup messagebox which is of web , so qtp takes 3 mins to recognize the messagebox and to click on it , we have more number of messageboxes like this . please suggest me some solution

1671






How to find a window is minimized or not

1453


1--How many functions u develop 2--What is an array 3-- where is ur server 4--U involved in unit testing 5--how ur test the background colour using QTP

1549


How software tester can use constants and variables in scripts?

1695


How you can delete excel file in qtp?

601


how will you load the test cases in ddt?

1600


How many types of object repository in qtp?

612


How many add-ins comes by default with quicktest professional?

558


How is a Step generator used in UFT?

663


Hi am New to Automation Testing , any one can you help me what are the basic questiion are asked an interview?

1428


could any help me please, how to work on visual foxpro application using UFT

1701