I used Child objects to get the count of the no of weblist
present in the page.now i need to select the item in the
weblist..Please send me full code



I used Child objects to get the count of the no of weblist present in the page.now i need to selec..

Answer / udham singh

set c = description.create
c(micclass).value = "Weblist"
set d = browser().page().childobjects(c)
msgbox d.count 'will give the number of lists on the page

for i = 0 to d.count - 1

d(i).select "1" 'u can give any value in double quotes

next

Note : this code will work on all the liste present on the
webpage.
Also if u want to perform select operation only on selected
weblists thats also possible

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More QTP Interview Questions

i need the licence key for QTP V9.5 can anyone help me on getting this?

140 Answers  


What is throw object?

0 Answers  


whaht is the difference between CLASS & OBJECT?

3 Answers   Accenture,


It is regarding VBScript, how to export our function results to ExcelSheet through VBscripting. Ex: I have written add function, that result should export to Excel.

3 Answers  


any one can explain about QTP proocess,means where to start and how to start Scripting.

3 Answers  






Whenever we r keeping mouse pointer under the image we r getting image name. In qtp how can we do this thing.weather that name is coming or not?

5 Answers  


types of output value in details.

4 Answers  


What is wrong in my code?

3 Answers  


Could someone explain me how to work on Out put values, explain with some example on Flight Reservation. I want to insert the out put value for the order No. Please explain the steps with some example.

2 Answers  


In Remote acess server how u run a test?

0 Answers  


What are the main features we have to compulsory test by using qtp in an web based application

1 Answers  


When u ll use Record Button in QTP?Is VB script is Mandatory in QTP? What is Meaning of Frame("v1")?

1 Answers   TCS,


Categories