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

I want to write some certification courses, so friends could you guide me? which certification is best and how to write exam and what tutorials need to be studied,what to do first, I am working on automation tool QTP 9.2

2055


They asked by using qtp recording writing scripting

2632


How you calling actions in qtp?

1097


how do we know whether all objects are stored in the object repository or not? how can we know if a particular object is not stored in the repository?

1801


Whether qtp 9.0 supports Test director8.0

2640


Excel sheet having some datas and some datas present in the application (in table). How will you compare these two datas? Write code to fetch datas from Excel sheet.

2042


How many types of recording modes in qtp? Describe each type with an example where we use them?

1093


what is the difference btn risks & Therads in the Test plan documentation?

2172


How to create a standard checkpoint ?

1126


How to use setroproperty?

1083


How do you synchronization point through DP?

1142


how can i call function (which has link with excell sheet at a remote location) within another function

2062


Explain the check points in quicktest professional (qtp)?

1087


How we can import data from database?

1275


what is key word driven frame work ? why it is called like that ? what is the diference between keyword driven and data driven frame work ?

2054