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

What are class properties?

1116


Mention the rules for using option explicit statement?

938


What is difference between vbscript and vba?

1132


When to use function procedures and what are its characteristics?

1042


What are lbound and ubound in the vbscript language?

1038


how to check whether link is disabled in QTP??

6064


Write a vbscript procedure that converts feet to inches. Hint: there are 12 inches in a foot?

996


What is the purpose of regexp object in vbscript?

974


How many types of procedures are available in the vbscript language?

956


Mention what is the difference between vbscript and vba?

990


How are values assigned to the variables in the vbscript language?

1001


Why to use option explicit in vb script?

1009


What are the valid scopes of a variable in vbscript?

1054


Explain about the asc function?

987


Mention what is the use of option explicit in vbscript?

930