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
What is the limitation to XML Checkpoints?
What are the types of object repositories? Which one is you are using?
What is the diff between image and bitmap check point?
How the exception handling can be done using quicktest professional (qtp)?
What is environment variable in qtp and why to use it?
How many types of object repository in qtp?
What are the major/ important methods, functions in QTP we use realtime testing
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?
Is it possible to use two instances of UFT on the same machine? If not why?
What are the properties you would use for identifying a browser and page when using descriptive programming?
Explain the types of properties that quick test learns while recording?
In keyward driven framework what will be the step for yahoo login page ,inbox logout,plz explain in detail
Give me detailed theritical explanation about keyword driven, hybrid framework, environment variables, hybrid frame work
what is the difference betn QTP 8.0 AND PREVIOUS VERSION
What is the use of text output value in quicktest professional (qtp)?