Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

what is the difference between built-i function and In-built function?

2104


What is CMMP and CMMH?

1105


what is the difference between IE & Netscape in web testing on a log in page

2249


How often were they executed?

2400


what are the frame work models of qtp?which frame work you follow in your company?and explain it process?

2488


What is the meaning Work bench?

2176


Generic function to search for the unique link in webtable and click on it

3016


Can you write a script to check if the folder exists or not?

926


Hi frnds, does anybody know if there is anything called "thin point" or something in qtp? thanks in advance.

1952


Explain the use of action split in qtp?

1042


please give me the code for doing retesting of gmail login page using functions so the function has to give the value

2003


I have created 3 actions in test action1, action2, action3 but I want run action 1,action 3,action2 how can you change in the actions in keyword view?

1050


Explain how Does Run time data (Parameterization) is handled in QTP?

971


How to use reporter.report event in qtp ?

975


What are the different types of checkpoints?

994