Try this
WshShell.SendKeys ("{Enter}")
Cheers,
Gokul.
On Fri, Jul 20, 2012 at 9:32 AM, qtplearner <[email protected]> wrote:
> Hi Friend
> pls see below query
>
> I am using sendkeys as but it is not working. need to click OK button in a
> dialog box by pressing Enter
>
> Set WshShell = CreateObject("WScript.Shell")
> WshShell.SendKeys "{ENTER}"
>
>
> OK button is by default active in the dialogo box. For using sendkeys
> method, do i need to first launch application or activate dialog box using
> Wshshell object.
>
> --
> 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
--
Thanks,
Gokul Krishna.
--
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