HI Nidhi
Thanks but it is also not working
my code is
WpfWindow("title").WpfButton("DeleteButton").Click ''A dialog box appears
in which i need to click Yes (which is in focus by default)
Set WshShell = CreateObject("WScript.Shell")
WshShell.SendKeys(Chr(13))
Note: In debug mode, WshShell gives reference to test path, it means we
need to add some code so that WshShell give reference to the dialog box?
Regards
On Thursday, July 26, 2012 11:44:36 AM UTC+5:30, nids wrote:
> Hi,
>
> Just try out with this
>
> Set WshShell = CreateObject("WScript.Shell")
> wshell.SendKeys(Chr(13))
>
> This is an another way of pressing enter
>
> Thanks,
> Nidhi
> On Tue, Jul 24, 2012 at 9:11 AM, qtplearner <[email protected]>wrote:
>
>> Hi,
>>
>> The solution
>>
>> *DeviceReplayObject.PressKey"28" should be DeviceReplayObject.PressKey
>> 28.
>> Do not use quotes.
>> *
>> is not working, pls suggest if someone has used DeviceReplay in qtp11
>>
>> Regards
>>
>>
>> On Friday, July 20, 2012 9:32:39 AM UTC+5:30, qtplearner 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
>>
>
>
--
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