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
When using descriptive programming?
What is synchronization point in QTP?
• What type of testing questions will be asked for 2+ yrs exp people in interview?
Have you done batch testing in qtp? If yes how you are doing?
How do you send email with attachment from outlook using qtp ?
What are the recording modes in wave event?
Which environments are supported by hp qtp?
What is test object model in quicktest professional (qtp)?
i'm using the qtp to test to vb appliction,i wanted to get the new application's title.i didn't want to use the winAPI to get it ,i 'd like to know whether a QTP function can do it. Eg: SystemUtil.Run "C:\Program Files\.....","","","" 'run an application, and misure the application is activating,then how to get the hwn wihtout using windowns api
how to use the QTP choose the data from oracle? e.g. i input the identity card NO. this will be add new record in the database ,and now i want get this record's prime key.
How many add-ins comes by default with qtp?
Why is Client side image is preferred over server side image?
tell me abt a time when u had to go above &beyind the call of duty to get the job done
What is keyword view?
How do you configure QTP AND Test director?