Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

write script for finding number of broken links in web page?

kindly please answer my question.

Answer Posted / lakshmi

To find no:of links present in any open web page:-
************************************************

dim br,pg,objbr,objpg,linkcoll,lcount
br=Browser("micclass:=Browser").GetRoProperty("name")
pg=Browser("micclass:=Browser").Page("micclass:=Page").
GetRoProperty("title")
set objbr=description.create
set objpg=description.create
set odesc=description.create
odesc("micclass").value="Link"
objbr("name").value=br
objpg("title").value=pg
set linkcoll=Browser(objbr).Page(objpg).ChildObjects(odesc)
lcount=linkcoll.count
msgbox lcount

Try it...

Is This Answer Correct ?    3 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the limitation to XML Checkpoints?

2102


What are the types of object repositories? Which one is you are using?

1247


What is the diff between image and bitmap check point?

1099


How the exception handling can be done using quicktest professional (qtp)?

1180


What is environment variable in qtp and why to use it?

1074


How many types of object repository in qtp?

1153


What are the major/ important methods, functions in QTP we use realtime testing

2856


If I am scripting Web-based Surveys using QTP that open up differently but at the exact same point require a username and password can I automate that username and password for all the surveys some how using QTP?

1952


Is it possible to use two instances of UFT on the same machine? If not why?

1176


What are the properties you would use for identifying a browser and page when using descriptive programming?

1070


Explain the types of properties that quick test learns while recording?

1080


In keyward driven framework what will be the step for yahoo login page ,inbox logout,plz explain in detail

2119


Give me detailed theritical explanation about keyword driven, hybrid framework, environment variables, hybrid frame work

1968


what is the difference betn QTP 8.0 AND PREVIOUS VERSION

2510


What is the use of text output value in quicktest professional (qtp)?

1092