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...

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

What is the syntax to call one script from another?

1014


What is the difference between qtp and selenium?

995


which type of testing process are you following in ur company? how to recognize a qtp page?

1750


How to automate a script in mainframes environment? I have the terminal emulator Add in. Describe in detail.

2221


images are dynamically changes how to compare two images with out using the bitmap

2375


What is the difference between a Function and Action in QTP?

1061


Key word driven framework

2142


How to remove the associated function library?

966


what the difference between shared repository and per action repository?

1014


What is 'sleep' in sync point?

1060


what is the latest version of QTP? Main difference between 9.2 and 10 version

2088


Hi , I am facing issue QTP 10.0 with oracle ERP 11i .When QTP opens,click sub links on ERP ,FORM is not opening getting unexpected Internet explorer error message with send or don't send report.So unable to work with forms using QTP.

3833


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

1884


What are the advantages of parameterization ?

1025


if numbers are always changing write a script for that

4120