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


Please Help Members By Posting Answers For Below Questions

What is qtpro? What is quick test pro?

783


Hi frens! I am testing VB project with MS Access database. At add button click my record is storing in data table and it is shown in datagrid. So at Delete button click i want to check datagrid rows 9before and after delete). so how can i do it using descriptive programming?

1699


How can I import environment from a file on disk?

718


How many add-ins comes by default with quicktest professional (qtp)?

740


Hi friends I need to know about jubula automation tool. Is anybody know in bangalore where jubula tanning class is going on do let me know. Its urgent for me to learn that tool please help.

3087






I created 3 actions in test suppose I want to run action 1 in single time, action 2 is 4 time what I do?

798


give me the code to save all messages of inbox of gmail into a folder and notepad

1799


Shall we add Local Repository to shared object repository,if yes,how we add

6511


Can I change properties of a test object?

831


How to export quicktest professional (qtp) results to an .xls file?

784


How you can write contexts to text file in qtp?

773


How to create Reusable and Multiple Actions?

1887


What is the parameterization? Give one example?

756


What are the disadvantages of recording test cases in qtp?

782


What is the purpose of loading qtp add-ins?

805