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

Why is action split used by qtp?

564


In qtp, explain what is keyword driven automation framework?

619


What are the types of object repository in qtp?

569


Explain QTP using different development techniques ?

542


1.How do u prepare the test suits in QC? 2.How do u convert requirements to test plan in QC?

1498






how to compare two bitmaps( 1. clients requirement & 2. Designed by dev) in qtp 8.2 wann clear steps

1677


What is text check point and text area check point?

610


What is the syntax to call one script from another?

540


How can I check if a environment variable exist or not?

543


Without integrating QC/Testdirector with QTP, is it possible to keep track of the defects?If yes how? How to export QTP results to an excel sheet?

1496


If created one virtual object? Next time I changed the window position will it work?

585


How do you do batch testing in wr & is it possible to do in qtp, if so explain?

625


How is a Step generator used in UFT?

663


How to use transactions in qtp?

565


How to run a test using quicktest professional?

532