Hi Devendra,
if the objects are identified as winobjects then you can make use of
SendKeys method to set data in the textbox,as follows.
set wshell=createobject("wscript.shell")
winobject("uname").click
wShell.sendkeys "this is test"
if any syntax error in above code please refer to SENDKEYS method in google.
Regards,
Kishor.
2009/2/9 Devendra Sharma-Automation Testing Engg. <[email protected]>
>
> Hi,
>
> I am facing problem during the QTP Script of outlook.
> ---------------------------------------------------------------
>
> Background:
> In Microsoft Outlook2003, Development Team added a New Toolbar with
> few number of items (like: Open, Add, Delete, New Contact Create
> etc.), when I clicked on one of the item (called New Contact Create)
> then a New Window is opened.
>
> Problem:
> 1. How to click on the item "New Contact Create" of the New Toolbar.
> 2. How I set the value into the Edit Box of the opened Window as these
> contorls are reconnized as WinObject and not maped with the standared
> classes of the objects.
>
> In addition of this when I found the child objects of the New Window
> then the returned value is 0.
>
> Please suggest how to proceed.
>
> Regard's
> Devendra Sharma
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---