Hi,

> some insights on how to work work with CildObjects() function as when I
debug the script I cannot see the details of the var_ChildObjects

In Debug Viewer you can switch to Command tab and type

> Set o = Window("Login").WinObject("Internet
Explorer_Server").ChildObjects() ' or skip it
> print o(0).whatyouwant

or use this "o" in Watch and Variables tab.

example:
Set o = Browser("Google").Page("Google").ChildObjects()
o.count = 42
o(0).object.tagName ==> "A"
o(33).object.tagName ==> "TD"


Roman

On Tue, Feb 24, 2009 at 11:51 AM, Eugene Gabuja <[email protected]>wrote:

> Hi Group,
>
> I have a login form inside this:Window("Login").WinObject("Internet
> Explorer_Server")
>
> Set var_ChildObjects = Window("Login").WinObject("Internet
> Explorer_Server").ChildObjects()
>
> How can I populate the username and password fields and then click the
> login button?
>
> Also please give me some insights on how to work work with CildObjects()
> function as when I debug the script I cannot see the details of the
> var_ChildObjects, it is just an object.
>
> Thanks
>
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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