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

Answers were Sorted based on User's Feedback



how can i count the number of links???..

Answer / 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

how can i count the number of links???..

Answer / raju

Using child objects we can count the links. script is as
given below

SystemUtil.Run "www.hdfcbank.com"
Set aa=description.Create
aa("html tag").value="TD"

set bb=Browser("name:=HDFC Bank.*").Page("title:=HDFC
Bank.*").childobjects(aa)
cc=bb.count

msgbox cc
For i=0 to cc-1
bb(i).highlight
Next

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More QTP Interview Questions

Write script to fetch the data from global sheet where row number is 3 and parameter is "text"

3 Answers   Accenture, Thomson Reuters,


Analyzing the checpoint results?

0 Answers  


Hi Every body please explain me in steps to use checkpoints and object Repositories in QTP for Flight Reservation application please tell me the steps for this its urgent pls thanx for urs answers

0 Answers  


Could anyone please tell me one situation where you have used recovery scenarion in real time with an example?

4 Answers  


what is stepin & stepout?

0 Answers  


How will you set a unique four digit number in an edit field in QTP?

2 Answers   IBM,


What are FAST and NORMAL modes in qtp ? Why r these modes intended for ?

3 Answers   IBM,


How to make arguments optional in a function?

1 Answers   IBM,


Your roles and responsibilities and daily tasks? (As automation tester)

0 Answers   Oracle,


after initiating one project for testing, when exacltly QTP tester role starts?

0 Answers  


Why VB scripts are used in QTP and TSL in Winrunner, is there any advantage of using VB Scripts

2 Answers  


WHAT IS THE USE OF "FUNCTION GENERATOR" IN QTP?

2 Answers  


Categories