Answer Posted / karthik
Option explicit
Dim childs, n, odesc
systemutil.Run "C:\WINDOWS\system32\calc.exe"
Set odesc=description.Create
odesc("micclass").value="WinButton"
set childs= Window("text:=Calculator").childobjects(odesc)
n=childs.count
print "number of buttons is "&n
Window("text:=Calculator").Close
The above script perfectly gives you with the answer. Just
copy and Paste it in your QTP and run it. NO modifications
required
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What are the methods of the TextStream object that are used for reading from a text file?
can any body tell me how i create a simple script and apply output value on it .pls send me a step by step process
Explain the types of properties that quick test learns while recording?
if anyone has idea of the interview procedure in covansys, plz send me a mail?
how can we do the frame work in qtp
how to evalute defects in QTP script?
If there is a change in the object type eg: A button is changed as link, 1. How to edit that in the shared object repository. 2.What options are available to edit the object within shared object repository other than copy from loca; 3.What would be the effect of the change in Coded Scripts within QTP and Functions stored in .vbs file which are loaded and used in QTP
Can anyone pls tell me in realtime (descriptive programming) how will the properties of the object be given to the test team. R they given in an excel sheet and is the same sheet also given to the development team and by whom is this given? Thanks a lot.
Explain how Selenium is different from UFT?
In qtp is it possible to check broken links of a page?
Approach for Installation,comaptibility,system testing
what is Property......End Property loop? how to write sript for it in QTP
Where is the Bitmap checkpoint information stored?
How to recognise the webelement and verifying that webelement is enabled?
This is Karthic and my mail id is karthic.venkitapathi@gmail.com, please give me an idea to crack qtp 10