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

Answer Posted / arjuncr

dear raju it is wrong

systemutil.Run"C:\Users\Raju\Desktop\cal.exe"
Set desc =Description.Create()
desc("micclass").Value = "Button"
set button=vbwindow("vbname:=CALCULATOR").vbbutton
("vbname:=ADD").ChildObjects(desc)
a= button.count
msgbox (a)

this one is correct
systemutil.Run"C:\Users\Raju\Desktop\cal.exe"
Set desc =Description.Create
desc("class Name").Value = "Button"
set button=window("regexpwndtitle:=CALCULATOR").ChildObjects
(desc)

msgbox desc.count

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is the qtp course will help to create a virtual object?

1514


Can I change properties of a test object?

615


What is the use of text output value in quicktest professional (qtp)?

593


hi all can anyone explain how to write the code for finding the mandatory columns in table which are having (red*) (red Astrik)

1396


i have to login into gmail loginpage i have to pass testcase into userid and password by using functions. the test case of user id is it should take only lowerletters alphabetin between 4 to 6 length.it should not take spectial letters.it should not take numbers.testcase for password is it should take numbers and it should not take alphabets note the following things must happen 1 when i give correct password and userid that password and userid should be seen in QTP result and notepad,xl sheet 2 when i gave in valid password the system willgive message please give valid password that particular messaage should be seen in QTP result,norepa and xl sheet

1751






wht type of User defined functions or Java Releated functions Do we write in VB scripting

1374


How does you test a weblink which is changing dynamically?

546


How to get the format of a webedit class in qtp. How can i know that particular webedit accept what type of format like "mm/dd/yyyy" or "$" or Alphanumeric

1637


how to download mercury qtp9.2 ny internet ?

2952


how to explain a claims and insurance project?

1746


Hi, i run scripts in one machine those r passed.when i run the scripts in client side those r failed.Give me such a scenario when ever u faced?

1508


how to evalute defects in QTP script?

1480


How will you find the current time of the remote machine using QTP script?

590


explain how to write vb script in qtp?when will you write own script?

1853


how can we preform retesting(DATA driven test) using function please gine the code for loginpage

2264