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
how will load the object during runtime?
Dis advantages of XML checkpoint ?
how to do the batch testing in test director using manual testing procedure?
how to convert 100 into hundred repees only and viceversa
To which environments does quicktest professional (qtp) supports?
Write a script to verify font style and color of a windows object using descriptive programming
Explain advantages and disadvantages of ddf?
What is quicktest professional (qtp)?
i need qtp tutorial. pls send it to sridhar.k151@g mail.com
Hi,All How to create a link in excel sheet using qtp
What is the basic concept of quicktest professional?
Can anybody let me know how to test the Drag and drop feature of the column in a .net application...eg..i hav to test the drag and drog feature of a table(swftable) in a application..plze help!!
How to sendKeys in QTP? Diff b/w sendkeys and device replay? Diff b/w function and Sub? Diff b/w Array and List Different Types of running Keys other than Fast, slow,Normal mode Regular expression for http://newtours.demoaut.com Difference between \w and \W How to generate script button Recording Types Different Types of Actions? Using DP performance degrades, If Yes why? How to close all the opened browsers? Diff b/w SystemUtil.Run and invoke application? If qtp not recognized the combo box How to select values from drop down?
By using QTP can we record any log files written by the application which is in execution?
what is profile tool?