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

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

Explain about the test fusion report of quicktest professional?

885


What are the advantages of a Hybrid framework?

1057


Hi All, I have QTP installed on my machine but the application under test is on remote machine. I need to automate the scenarios which consist of automatically enter the remote machine through IP address ,record the application in remote machine and run it also when played. Can some one tell how to record the application in remote machine.

1974


can any body give the banking domain concepts/links

4016


what is keyword driven testing in qtp?n how is it useful?

1853


How often were they executed?

2398


What is the difference between call to existing action and copy of an action?

1038


What is difference between shared and local object repository?

1062


For which type of projects the iterative model is not suitable?

1823


Explain the concept of object repository and how quicktest professional recognises objects?

951


how to acess a test in RSA?

2158


When I click on a link in web page.Link should open in new window.can anyone please let me know the script for this ---Koti

2854


Create flight reservation login descriptive programing (Condition: Remove the value and substitute with a variable, and then call the validation from Excel) Plz help me....... very urgent.........

2126


Explain how you can find length of array in qtp?

1002


Explain the new feature of UFT regarding the export of test results?

971