1) 100 test boxes there in application. how to click 100
test boxes using vb script? 2) 100 objects there in web
page,how we will store that 100 objects repostries?

Answer Posted / uday

The expectated answer for these kind of questions is using
descriptive programming.

If you create single webedit object, then u can use it for
100 webedit objects.

set editObj=description.create
editObj("micclass").value="webedit"

set editChildObjCol=b().p().childobjects(editObj)
for i=1 to 100
editChildObjCol(i).click
next

Is This Answer Correct ?    17 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is active screen?

560


How you can replace string in qtp?

570


Explain hybrid framework with advantages and disadvantages?

538


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

1615


Is it possible to refer the same object for referring more than one object that are of different class using the descriptive programming approach? Suppose my code is 'To create the object named as obj Set obj=Description.Create() 'To define the values obj("title").value="IE" obj("type").value="text" obj("html tag").value="INPUT" 'To set the value Browser("IE").Page("Yahoo").WebEdit(obj).Set "xyz" Can I refer the "obj" object for the three objects like Browser,page and webedit objects? If so how?

1575






How do you synchronization point through DP?

595


How can you pass value one action to another action?

553


I want to open a Notepad window without recording a test and I do not want to use System utility Run command as well. How do I do this?

617


In qtp, how you can use xpath to identify objects?

612


What is QTP testing process?

621


i have asked earlier only one question how to test web application using QTp plz send me the answer quickly

1655


Hi, How Accessibility checkpoint in QTP can be implemented in the test script?

1608


Can any one explain me what is the procedure to connect the remote desk by using QTP 9.2 ?

1515


How the exception handling can be done using quicktest professional?

538


Hi all can any one give me roles and responsibilities for QTP (not WINRUNNER)

3215