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 keyword view and expert view in qtp?
Call to copy of an action and call to existing action… i know the diff but in real project how to use..? i want live scenario.pls help me..
1.Write a CRITICAL test cases for calculator ? 2.What is the difference b/w FRS and SRS documents ? 3.What is Component ? 4.What is object ? 5.what is the difference b/w static and dynamic descriptive programming ?
What are the different recording modes?
if our qtp vb Script may be Currepted then What we want do?
Explain advantages and disadvantages of ddf?
Shall we add Local Repository to shared object repository,if yes,how we add
What is recovery scenario manager? When you go for recovery scenario manager? Tell me one scenario were your used recovery scenario in your project?
how could i download qtp in which i get add-in support for 'oracle' is there any way to get it? i finding but not getting pls help me out :)
Is it possible to call from one action to another action in qtp?
In application which areas to be automated and what kind of situation will be take? using QTP? Plz give me the clear answer
What is accessibility check point?
what type of run time errors you get while you ar edoing rpg program?
How to connect the remote desktop using QTP 9.2 explain the method or procedure?
How to recognise the webelement and verifying that webelement is enabled?