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.
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 |
User defined function in QTP
Have you done batch testing in qtp? If yes how you are doing?
What is the extention of Virtualobject
does test plan is in test strategy or test strategy is in test plan.
what the difference between shared repository and per action repository?
Can we run multiple QTP scripts one after the other without manual intervention? How?
How did u write macros?What is the main importance of VB macros in testing environment?
can any boby tell me what is method or steps to connect the remote desk top by using QTP 9.2 version?
What is Virtual Object? Plz Explain me with an example?
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.
Can any one send me the QTP Basic Coding Samples?
can any body clearly explain about hybridframework with the explanation for files what ever we come acros in this frame work?