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 will you test a keyboard?
What is Curd testing?
What is the significance of “action 0” in qtp?
Did QTP prove efficient for your project? Yes or No, explain?
How many types of actions are there in quicktest professional?
what is meant by function library?Public and private functions in function library? if private functions are applicable for only for the particular test means then y we have to add those to function library?
Explain types of output values?
There is an built in window application in qtp9.1,i.e.Flight4.0.i want to implement the recovery maneger on it.How can i do this?
Do you know how to connect database? Can you tell me the procedures?
What are the main differences of qtp and win runner?
how to do the batch testing in test director using manual testing procedure?
Sql questions to find second max salary and how to use joins
Discuss quicktest professional (qtp) environment?
What is difference between run time object and test object?
how many maximum number of virtual users we can create?