how can i count the number of links???

Answer Posted / nalini

There are two ways to get the count of links on a page.

1) g=Browser("Google").Page("Google").GetROProperty("number
of links")
print g


2) set ld=description.Create()
ld("micclass").value="Link"
set lobj=Browser("Google").Page("Google").ChildObjects(ld)
c=lobj.count
print c

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

terminal services client

1791


what is the difference betn QTP 8.0 AND PREVIOUS VERSION

1956


Which scripting language used by quicktest professional?

532


I used child objects to get the no of weblist present in the weblist.now i need to select the items present in each weblist ?How to do so

2256


how to compare two bitmaps( 1. clients requirement & 2. Designed by dev) in qtp 8.2 wann clear steps

1677






What is the parameterization? Give one example?

594


Name the different types of recording modes?

580


Hi, can explain the draw back of manual testing.plz send me the answer to my mail id deepthip1985@gmail.com

1419


For which type of projects the iterative model is not suitable?

1435


What is the quicktest professional testing process?

533


How to remove associated function library?

566


Is qtp supports uni-code?

618


www.icici.com after this home page wll came, in this page what r the items we r going to test for manual and what the element we r test for QTP... explian clearly with example

1502


I want to test my vb.net solution file using qtp. Does Qtp test only .exe file?

1730


What are the general steps involved in the data driven framework?

560