how do find current links in webpage for ex: in
yahoowebsite today mainpage is having 50 links and next day
same page is having 60 links. if i run same programe it
should display total links in webpage ?

Answer Posted / badri

Above script for weblists

To count No of Links in webpage:

Set chobj=description.Create
chobj("micclass").value="Link"
Set obj=Browser(" ").Page(" ").ChildObjects(chobj)
'Count the no of objects
n=obj.count
msgbox "No of Links: "&n

Is This Answer Correct ?    11 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we run multiple QTP scripts one after the other without manual intervention? How?

588


Hi, Can we open a test in qtp10 which is saved in qtp 9.2?

1427


write the vb script for call to new action in qtp?

1851


How to handle the exceptions using the recovery scenario manager in qtp?

562


Can any one tell me.......How the test engg's start testing in the compy environment.....real time tester PLSSSS help me i need in depth information regarding this...

1479






On what document base Descriptive programming is written if build is not yet ready ?

869


Connect to QC using AOM.

1229


"What are the common constrains that we need to consider when we prepare testcases for ASP application". Thanks in Advance...

1434


i can done the project with QTP in that time i can say how many members in my team size?

1363


What are the advantages of parameterization ?

587


QTP script is not working on other's machine..

1531


Can we use index on view?

1593


Is it possible to call from one action to another action in qtp?

552


Explain the concept of object repository and how quicktest professional (qtp) recognises objects?

599


What is TOM in QTP?

1800