how do check the links in a webpage ?

Answer Posted / hemanth baabu

For Ex..
"oDesc is the new descrption"
"objlink" is the object which we save alla the links..,

then..,
ex.prm:-
Set oDesc = Description.Create()
oDesc("micclass").Value="Web Link"
Set objlink =
Browser("micclass:=Browser").Page("Browser:=Page").Childobject(oDesc)
NumberOfLinks = objlink.count
msgbox NumberOfLinls

then in msg box the number of links will be opend..,

as per my knowlwdge this is the answer...

thanks&regards
hemanth baabu..!!

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

HOw to add the recovery file at runtime to the test file .

1535


In the application that I'm testing is having a WYSIWIYG editor.QTP is recording editor's body as web element. I want to add some data to this web Element at run time. The problem is that I cant find a method to add contents to this web Element. Can any one come up with an answer for this. Thankx.

1443


assume i have few url link how will i dynamically call then using descriptive programming?

1599


Can anybody post some real time scenario in qtp? please its very urgent.

1799


Is it possible to merge two object repository files in qtp?

616






How does QTP identify an object?

609


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

601


How should I click on the right click menu objects When I trying to add the object properties to the OR.It is showing only Window(Window).Not all the objects of the window. Also while recording I found No script. How to solve this>.

1540


Differences between text and test area checkpoints?

578


in a web page How to check and display a particular word from a paragraph?

2037


What r the different filters in defect in quality center

3279


What is the quicktest professional testing process?

526


How many ways we can parameterize data in quicktest professional (qtp)?

582


what is object and child object.. explain ..if possible give some example for better understanding ..

1529


In a flight window we have to enter the name and meal request for every passenger.In that window if we give Total passengers=1 then the Psngr1 name field and psngr1 meal request field will reflects.if we give Total passengers=2 then Psngr1 name field and psngr1 meal request field,Psngr2 name field and psngr2 meal request field and so on. how we can handle this scenerio thru Descriptive programming?

1438