how to get the object count ?????????

Answer Posted / nagk24

cnt=0
Set d=description.Create
d("micclass").value="WinEdit"
Set a=window("text:=Flight Reservation").ChildObjects(d)
For i=0 to a.count-1
cnt=cnt+1

Next
msgbox cnt

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

i need to add 1000 users in a domain i written the script for that and it is running successfuly but the problem is that my system is not the user of that domain in which i have to add users so for adding users in that domain i have to install qtp on that another system, can anybody suggest me the way to add those users from my system ultimately i want to know how to access remote computer through script

1515


Whether qtp 9.0 supports Test director8.0

2226


what are all the fileds present in object repository?

1648


What is checking bitmaps?

659


What is a reusable action?

649






i need qtp tutorial. pls send it to sridhar.k151@g mail.com

1755


Hi All, issue is related to handling pop up script generated in IE, and run on mozilla. In App Under Test, when we get the alert pop ups, we just click ok button. if we need to run the same code on mozilla it will not identify . so we will check browser if browser(*).dialog(IE object).exits browser(*).dialog(IE object).winbutton(OK).click else 'by default mozilla browser(*).dialog(mozilla object).page(*).webbutton(OK).CLICK END IF But my qustion is. Do we write the above piece of code where ever we get such kind of pop ups from the application like alert pop up, confirmation pop up.... OR do we have any other alternative way to do this by using any functions in Recovery Scebarios? If Any of u know idea please do help me in this regard. or send answer to kravimb@gmail.com

1545


how to fetch the values from grid? & qtp recogniges that grid as a webelement? what u do?

2023


Any body have QTP 9.5 licence key. please provide me at madhukar_dec30@yahoo.co.in

1682


How many lines of code in each script of QTP?

4115


give me an example where u used good judgement and logic in solving a problem

3438


What are the types of object repositories? Which one is you are using?

722


I want to test my vb.net solution file using qtp. Does Qtp test only .exe file?

1823


How to Test the mainframe application?

1912


What is the framework your company is following. What is the reason. Explain why key word driven frame work is chosen.

1713