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
hi can anybody help with an qtp 9.2 license key please. Thanks, Nitesh.
When should I use smart identification?
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.
Name the different types of recording modes?
What is data driver in qtp?
Explain the views in the QTP GUI?
hi nani my doubt is how does qtp process metrix related to software process.
Explain Descriptive Programming Types with Examples?
hi frinds i need help .i have 4 + yrs exp in testing and nearly 2 yrs exp in QTP and QC .currently iam working north fast 2 yrs iam looking for job in south is there any openings plz letme know my mail id is pbre1980@gmail.com
Without integrating QC/Testdirector with QTP, is it possible to keep track of the defects?If yes how? How to export QTP results to an excel sheet?
what is vmodel?advantages and disadvantages of vmodel?
How to execute a winrunner script in quicktest professional?
What is output value? How many types of output values are there in qtp?
why you have standardized functions? plzzz guys with real time exp. do answer
How you know that a test case is a regression test case