In a yahoo web Application there are 65 links.one day it
will opens 50 links and another day it will open 55
links.In this scenerio write Descriptive programing for
Automation?....Pls write the code for this scenerio.



In a yahoo web Application there are 65 links.one day it will opens 50 links and another day it wi..

Answer / gaurav anand

for that page, use description.create() to get an object and then use that object to assign a "micclass" value i.e. in this case is links. then, count the no of links using count(). then store this in a variable and use a for loop to work on these links.

set a = description.create()
a.("micclass").value=links
for(i=0;i<a.count,i++)
set b= browser("").page("").childobjects(a)
-----use b as an object to do whatever you want to do on a link-----
next

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

User defined function in QTP

2 Answers   Lehman Brothers,


Have you done batch testing in qtp? If yes how you are doing?

0 Answers  


What is the extention of Virtualobject

1 Answers   Accenture,


does test plan is in test strategy or test strategy is in test plan.

6 Answers   Microsoft, TCS,


what the difference between shared repository and per action repository?

0 Answers  






Can we run multiple QTP scripts one after the other without manual intervention? How?

0 Answers  


How did u write macros?What is the main importance of VB macros in testing environment?

1 Answers  


can any boby tell me what is method or steps to connect the remote desk top by using QTP 9.2 version?

0 Answers  


What is Virtual Object? Plz Explain me with an example?

2 Answers   Ordain Solutions,


What is the use of "Registeruserfunc" when should we use it? Note:Please do not copy paste the date from QTP help. I tryed it.But I don't Understand where should we use exactly.

5 Answers   Livetek,


Can any one send me the QTP Basic Coding Samples?

0 Answers  


can any body clearly explain about hybridframework with the explanation for files what ever we come acros in this frame work?

4 Answers   Wipro,


Categories