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 is the Difference between test object and run time object?
what is the hierarchy to use properties in descriptive programming
Can we record an application running on a remote machine using qtp?
What are output values and why they are used ?
An object is non standard object, i mapped it to standard object, eventhogh on mapping to standard object i cannot use the methods available on the standard object with the mapped object. How i can use those standard object methods with these mapped object. (((Note : dont tell that we can use virtual object as virtual object is to map nonstandard obj to standard obj)))
Can any body please tell me the steps of keyword driven framework of QTP.
I opened gmail login into gmail and i have to save (Pass or move) all the mail into notepad please give me code Thanks of all
How to use actions in qtp ?
How will you declare a variable in qtp?
What are the types of data tables in qtp?
What are the different types of checkpoints?
What are the ways you can synchronize?
Hi All, we are using QTP Automation Scripts to test SAP. I recorded QTP Automation Scripts in English-based SAP GUI. Now we have to test a French-based SAP sytem and use the same scripts. The QTP scripts are failing when executed on the French-based SAP System due to Object Recognition Issues. What can we do? Do I re-record the scripts in the French-based SAP system?
Analyzing the checpoint results?
How do I get the QTP scripts result in xml format by using vb script function?