Hi
Try this it works

SystemUtil.Run "calc.exe"
Set desc =Description.Create
desc("nativeclass").Value = "Button"
set button=window("regexpwndtitle:=CALCULATOR").ChildObjects(desc)
bCount = button.count
For i = 0 to bCount-1
    Msgbox button(i).GetRoproperty("text")
Next

On Sat, Nov 19, 2011 at 8:01 AM, Raju Prasad <[email protected]> wrote:

> hi
>
> testers
>
> beloiw is the script
>
> calculator application consists of  add,mul,div,sub,clear buttons
>
> but i shows one child object
>
>
>
>
> invokeapplication "C:\Documents and Settings\raju\Desktop\cal.exe"Set desc
> =Description.Createdesc("Class Name").Value = "vbButton"
> set button=window("regexpwndtitle:=CALCULATOR").ChildObjects(desc)
> msgbox desc.count
>
> thanks in advance
>
> reddy prasad
>
> --
> yours
> reddy prasad
>
> --
> You received this message because you are subscribed to the Google
> "QTP - HP Quick Test Professional - Automated Software Testing"
> group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/MercuryQTP?hl=en

-- 
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en

Reply via email to