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 Posted / 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 View All Answers
How extensive or customized are the server logging and reporting requirements; are they considered an integral part of the system and do they require testing?
we use a file extension .properties why is it used and where do we use it plz help me out with detailed explanation and navigation of how to use on the QTP 8.2?
banking domain description for software tester for interview
What are the advantages of parameterization ?
Where is the resultset of a sqlquery (which is fired by rsobj.open sqlquery,xxxx,xxxx) stored ?
whow much strong on VB and C?
Without integrating QC/Testdirector with QTP, is it possible to keep track of the defects?If yes how? How to export QTP results to an excel sheet?
Which scripting language used by quicktest professional?
Who uses qtp tool?
Can we record using all the modes in a single script? Explanation with example is appreciated
What is qtp window?
Can we access the java methods in qtp. Because my requirement is to access the swt(for eclipse an it is java code) methods in qtp is it possible?
Which advantages helping QTP to hold the position of "Market Leader" for such a long period?
How do we handle run-time errors?
How to use parameterization in qtp?