In a page i have N number of links at a time i would like
to open those links by using QTP?how to do that?

Answers were Sorted based on User's Feedback



In a page i have N number of links at a time i would like to open those links by using QTP?how to ..

Answer / hokrani

Set ObjLink=Description.Create
ObjLink("micclass").value="Link"

Set PageLink= Browser("..").Page("..").ChildObjects(ObjLink)

For i=1 to PageLink.count
PageLink(i).Click
Next

Is This Answer Correct ?    7 Yes 1 No

In a page i have N number of links at a time i would like to open those links by using QTP?how to ..

Answer / manish

You can get it by first create description object like :-
set deslink = description.create()
deslink("micclass").value = weblink

then you can use this variable to get number of link in the
page like.

set bro = browser(" ").page (" ")
set countlink=browser(" ").page("
").weblink(deslink).childobjects
for countlink = 0 to countlink-1
bro.weblink(deslink).click
next

Is This Answer Correct ?    3 Yes 3 No

Post New Answer

More QTP Interview Questions

What is Terminal Emulators”? Why we used in QTP.? How he works on QTP.

1 Answers  


Tell me Three major differences between QTP & Winrunner?

2 Answers  


How we test the logo or images in the web page using QTP? For example take google page, they change their logo for new year,christmas etc..How we test that? Plz answer this question... Thanks in advance..

2 Answers  


How to use transactions in qtp?

0 Answers  


How you can make an action as re-usable action?

0 Answers  






Can we use same virtual objects in many number of tests?

1 Answers   TCS,


what is the difference between the modular framework and datadriven frame work

2 Answers  


If you use low level recording,what objects will be recorded in Object Repository and what properties?

3 Answers   CTS,


what is frame work of qtp?

4 Answers   ITC Infotech, KPIT,


In Object Repository, two actions r there. Action1 name is A.tsr, Action2 name is B.tsr. Is it Possible? if Yes, what is the out put of A+B? if No, why?

2 Answers   Kanbay,


vb script for calling one function to the another function

2 Answers  


give me the code to save all messages of inbox of gmail into a folder and notepad

0 Answers   Infosys,


Categories