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
What is qtpro? What is quick test pro?
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?
How can I import environment from a file on disk?
How many add-ins comes by default with quicktest professional (qtp)?
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.
I created 3 actions in test suppose I want to run action 1 in single time, action 2 is 4 time what I do?
give me the code to save all messages of inbox of gmail into a folder and notepad
Shall we add Local Repository to shared object repository,if yes,how we add
Can I change properties of a test object?
How to export quicktest professional (qtp) results to an .xls file?
How you can write contexts to text file in qtp?
How to create Reusable and Multiple Actions?
What is the parameterization? Give one example?
What are the disadvantages of recording test cases in qtp?
What is the purpose of loading qtp add-ins?