How will u find that how many List boxes( and check boxes)
are present in one particular window

Answer Posted / nanda

Hi,

try this code...


set odesc = discription.create

odesc("Class Name").value ="WinCheckBox"
odesc("native class").value="Button"

set checkboxcount= window("<window name>").childobjects
(odesc)

counts=checkboxcount.count

msgbox counts

u will get number in msgbox.

please ping me if there is any feedback.

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why qtp the best testing tool?

566


Explain the concept of object repository & how qtp recognizes objects?

572


In the Hybrid framework, data can access the database, excel file, XML etc. Is it true?

563


Hi All, How to Compare two strings character by character in QTP

953


What is the file extension of the code file in qtp?

563






Output values? i want a practical example

1309


Explain how qtp identifies object?

613


Hi could some one explan what is the use of the function Defination generator, And how to use the function defination generator.. Explan with the example..

1353


What are the challenges you faced during you entire life automation ?

1006


What is quick test pro?

592


Explain about Test Fusion Report of QTP?

617


How can I change object description or check point values in qtp?

557


The structure of keyword driven frame work is like a folder structure the different sub folder are 1-functional libray folder 2-object repository folder 3- database folder 4-appliction1.xls 5-initalzation vbs file 6-sequence file 7-driver script 8-test case list file My question is whether these are in a local server machine or in our pc.((whether It like Vss). can u give example of driver script(code)

2804


What is file database?

1694


How many types of actions are there in quicktest professional (qtp)?

536