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?

Answers were Sorted based on User's Feedback



1) 100 test boxes there in application. how to click 100 test boxes using vb script? 2) 100 object..

Answer / 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

1) 100 test boxes there in application. how to click 100 test boxes using vb script? 2) 100 object..

Answer / taj

HOW CAN U CLICK A EDITBOX.?


ANS HERE IS:
CNT=EDITCHILDOBJ.COUNT
FOR I=0 TO CNT-1
EDITCHILDOBJ(i).set "xyz"
next

Is This Answer Correct ?    1 Yes 1 No

1) 100 test boxes there in application. how to click 100 test boxes using vb script? 2) 100 object..

Answer / mohammed zakir

CNT=EDITCHILDOBJ.COUNT
FOR I=0 TO CNT-1
EDITCHILDOBJ(i).set "xyz"
next

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

How do you handle XML exceptions in QTP (Here it is Exception, not the checkpoint)

2 Answers   CFC, CTS,


How to handle Java tree in QTP?

0 Answers  


What is the scripting language used in QTP?

11 Answers   IBM,


Give me brief idea about QTP automation object model?

5 Answers   TCS,


Anybody explain me, the concept of checkpoint declaration in the QTP mainly for the Objects, Pages, Text and Tables ?

1 Answers  


how to export the result to notepad....for example i want to enter the user name and pass word and clicking on login button ......once you click on login button the corresponding page will open ...in that page you having one list box ...here you can get either success or failure ........friends here i want export the message what ever i got either success or failure .....how to export the result to note pad

1 Answers   Mind Tree,


How can we fill data in a text box without recording using object spy. Can you please provide the steps...

1 Answers   Hotel Jobs, TCS,


Describe how Smart Identification is used

0 Answers  


hi in QTP 8.2 in the edit box has text like "raju want married" . i want to check "want" is their in the text or not ?

16 Answers   Syntel,


Using Object Repository is a advantage or disadvantage?

6 Answers   Wipro,


What are the different types of checkpoints?

0 Answers  


I need to know how to Automate a Username and Password for a Web-based product? I'm scripting 3 different types of surveys but each Survey requires a Username and Password which is always the same. I can I do this using QTP?

3 Answers  


Categories