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

If I change the object name in one action will it be updated in all the actions? Or not?

820


Is virtual object supported in low level recording mode?

867


How to use conditional loops in qtp ?

771


what type of run time errors you get while you ar edoing rpg program?

1695


How will you declare a variable in qtp?

763


Why qtp the best testing tool?

758


can test automation improve test effectiveness?

1714


What are the different kinds of test steps?

790


What is data driver in qtp?

761


QTP 10.0 is not identifying web objects for IE 8.it is identifying like winObject.I installed HP patch QTPWEB_00037.Still getting issue

5850


Hi, I am using OutputCheckPoint and I am storing the value in the data table. The stored value for column:bedroom:"Bed:4" The another value for column:bathroom:"Bath:2 Full,1 Partial" I need only the no 4 from the first column. I need only the no 2,1 from the second column. I used split array,but it also show array(0) has the value"bed:4" ..... Even though I highlight only 4,It is seleting the full value "bed 4".How can I get only the nos Thank you Uma

1493


Hi All , How can we decicde for pariticular frame(DataDriven or Keword Driven)in Project? Thanks Balaji

1581


Can UFT be connected to Quality Center? If ‘Yes’ brief the process or steps.

835


Define Environment Variable in UFT and its uses?

801


Brief the process of testing with UFT?

810