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 the extension for QTP files?

16 Answers   American Solutions,


Will QTP Support Japanese Language?

3 Answers   Cap Gemini, Infosys,


We have 10 page.In first page we 2 popup and next page we 3 popup window......(windows name is different)how can we handle the all the popups without using recovery scenario

1 Answers   HK, TCS,


In one of the scripts the pwd in the DT was encripted. Can any one tell me how to I decript or undo the same?

3 Answers   BirlaSoft,


How to execute the test cases using QTP. i.e What is the use of QTP while execution

2 Answers  






Can you tell me QTP is support for GIS(Geography Information System) Based Software.

1 Answers  


How to get the column count and column name from the resultset in the database connection program?

5 Answers   TCS,


CAn anybody tell me how can I use QTP to capture any video in my application?I want to see the video file opened in my application after the tests are completed in tests results.Can anybody help me?

6 Answers  


When we parameterise some field ex. Textbox is there any way that we can generate a specefic number of random values (For alphabetical values if possible) instead of manually entering values in the data table

2 Answers  


How to use regular expression in descriptive programming?

0 Answers  


Explain the Different types of QTP test assets and their extensions?

0 Answers  


4. what is the use of Text output value in Qtp?

1 Answers   Wipro,


Categories