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

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why qtp the best testing tool?

558


Hi, how can we check or avoid the memory leakage in QTP9.2?

1698


What is recovery scenario manager? When you go for recovery scenario manager?

586


What are the types of properties that quick test learns while recording?

529


can any body plz help by sending the qtp docs and qtp ppt's? this is my mail id:murali.padeti@gmail.com

1756






In the Hybrid framework, data can access the database, excel file, XML etc. Is it true?

559


For example you are checking bit map check point before coming to the results. How can you say it is passed? Or failed? Anyways?

612


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.

3421


How many tabs are available to view your test in a test pane and what are they?

560


Can any one explain me what is the procedure to connect the remote desk by using QTP 9.2 ?

1515


What are the differences between qtp and winrunner?

525


How did you resolve conflicts present in Object Repository?

1611


What is checkpoints for qtp?

527


Hi Frenz... I would like to take up the QTP certification . Can anyone tell me what is the procedure. n if anybody have the study materials pls fwd it to jkpunathil@gmail.com

1494


Hi, I am supposed to automate mainframe application through qtp. I do not know how to start abt it. Can you plz help me in first initializing the process or do you anybody have a guide book or a link which guides me through the process of automating the mainframe applications and things involved in it.

6655