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


in qtp how i can retrive from a browser how many links are
there.means total no of links used in a browser

Answers were Sorted based on User's Feedback



in qtp how i can retrive from a browser how many links are there.means total no of links used in a ..

Answer / sandeepguttikonda

To get the count of total number of links in a browser we
need to use "Childobjects".

And we can perform this by using the below code:

/* Creating the description object*/
Set oDescFrame = Description.Create
oDescFrame("micclass").Value = "links"

Set Links_Count = Browser("name:="&Browsername).page
("title:="&Pagetitle).ChildObjects(oDescFrame)

Msgbox &Links_count.count

This will display the total number of links in a page.

Please let me know if you need any further info.

Thanks.

Regards,
Sandeep Guttikonda

Is This Answer Correct ?    15 Yes 0 No

in qtp how i can retrive from a browser how many links are there.means total no of links used in a ..

Answer / santhosh

Set a = Description.Create
a("micclass").Value = "Link"

Set b = Browser("name:=Yahoo! India").page("title:=Yahoo!
India").ChildObjects(a)

msgbox b.count

Is This Answer Correct ?    4 Yes 0 No

in qtp how i can retrive from a browser how many links are there.means total no of links used in a ..

Answer / rajanikanthreddy

set desc=description.create()
desc("html tag").value="A"
set a=browser("name:=Book Store").page("title:=Book
Store").ChildObjects(desc)
print a.count
For i=o to a.count-1
b=a(i).getroproperty("text")
print b
next

Is This Answer Correct ?    4 Yes 0 No

in qtp how i can retrive from a browser how many links are there.means total no of links used in a ..

Answer / venkatesh

links=Browser().page().getroproperty("number of links")

msgbox links

Is This Answer Correct ?    2 Yes 1 No

Post New Answer

More QTP Interview Questions

diff between global variables and environment variables in qtp?

1 Answers   FIS,


What is difference between Recording time object identification and Run time (Execution) time.

0 Answers   Tech Mahindra,


It is given in the help of QTP 9.2 that we cant debug the scripts. Is there any other way to VIEW, PAUSE and make modifications in the scripts during execution???

0 Answers  


Explain features of the latest version of qtp/ uft 12.1?

0 Answers  


WHAT IS THE DESCRIPTIVE programming when it is useful? & when to use this ?

2 Answers  


What is object repository in qtp?

0 Answers  


How can we test an XML using QTP? I have been to an interview, where they have given me an XML which had 15 values and they have given those values on a separate page. They asked me to write a QTP script to check the XML is having those particular 15 values.

2 Answers  


How can i store runtime value through vb script while using qtp

1 Answers  


how to capture data from images in QTP and produce them in excel sheet?

3 Answers  


Suppose if a functionalityis not mensioned in requirement document and but its present in application. will it be consider as a bug and viceversa?

2 Answers  


Which scripting language used by quicktest professional (qtp)?

0 Answers  


pls tell me different type of automation frame works in QTP and which one need to select in client server application

7 Answers   Syntel,


Categories