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

how to display all the links in one page using vb script in qtp.

Answer Posted / sowmya

We can use the page check point to display the number of
links in a web page

or

we can create the child object

set objlink=description.create()
objlink ("micclass").value='weblink'
set odesc=browser("browser").page("browser").childobject
(objlink)

numberoflinks=objlink.count

msg numberoflinks


i think it should work.....

Is This Answer Correct ?    7 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to pass argument by reference to a function in vbscript?

1141


How are comments handled in the vbscript language?

1056


Which data type/types are supported by vbscript language and what are their specialties?

1101


How to assign a date value to a variable?

1163


Which date function is used in the vbscript language to find the difference between the 2 dates?

1121


Description.Create

2692


What purpose does ‘on error resume next’ serves?

1149


How will you get the smallest subscript of an array in vbscript?

1432


If else for do while select in vb script?

1251


write a function to read the items from combobox of Flight reservation & save in excel (QTP)??

2901


Write a Script for ATM in QTP

3953


How will you convert a string to lower case string using vbscript?

1090


What is the use of the recordset object and which statement is used to create such an object?

1024


How can you create an object in vbscript?

1139


How to make sure that items in a wintree are sorted al?

2893