How to enter using sendkeys in QTP?
When the normal
recording mode is failing in QTP, then we can go for analog recording, low-level
recordings. If we don’t want recording, then we can send the keyboard input to
an application by ‘Sendkeys’ method.
E.g.,
Set
wshell = Createobject(“Wscript.Shell”)
wshell.sendkeys
“{enter}” ‘to input the enter
key
Set
wshell = Nothing
(OR)
Set wshell = Createobject("Wscript.Shell")
wshell.sendkeys "^f3" 'To input CTRL + F3
Set wshell = Nothing
(OR)
Set wshell = Createobject("Wscript.Shell")
wshell.sendkeys "^f3" 'To input CTRL + F3
Set wshell = Nothing
Comments
Post a Comment