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

Tell me the difference between the Data Driven Frame work and Keyword Driven frame work?

3 Answers   Semantic Space,


what is stepin & stepout?

0 Answers  


how do we know whether all objects are stored in the object repository or not? how can we know if a particular object is not stored in the repository?

0 Answers  


what is the use of Browser.sync()

2 Answers   NIIT,


I opened gmail login into gmail and i have to save (Pass or move) all the mail into notepad please give me code Thanks of all

0 Answers   Wipro,


Give me brief idea about QTP automation object model?

5 Answers   TCS,


How can we fill data in a text box without recording using object spy. Can you please provide the steps...

1 Answers   Hotel Jobs, TCS,


Synchronozation types in QTP

11 Answers   Diebold,


Is the qtp course will help to create a virtual object?

0 Answers  


What is difference between WR and QTP?

2 Answers  


A FORM CONTAINS 5 FIELDS. 1 FIELD IS ENABLED REMAINING(4) FIELDS DISABLED. MY QUESTION IS ENTER VALUES INTO 1 FIELD AFTER THAT CLICK TAB BUTTON THEN 2 FIELD ENABLE THIS PROCESS CONTINUE UPTO 5TH FIELD. HOW TO WRITE CODE IN DESCRIPTIVE PROGRAMMING. PLZ TELL ME THE PROCEDURE AND CODE FOR IT.

0 Answers   TCS,


I want to read XML file loaded in Quality center and compare the values with the values displayed in Application (web table).How can I do that

0 Answers  


Categories