Example of SendKeys in UFT


Scenario1:
User wants to click Right Arrow to access particular tab in Microsoft Excel?

Code:
Set objClick = CreateObject(“WScript.Shell”)

objClick.SendKeys “{RIGHT}”

Set objClick = Nothing




Scenario2:-

How to launch Task Manager in windows?

Note:-Shortcut for Windows Key in Windows 7/8 is “CTRL+SHIFT+ESC”.



Code:

Launch Task manager using Sendkeys
Launch Task Manager in windows

What is SendKeys?
Keystrokes in SendKeys?

ufthelp

One thought on “Example of SendKeys in UFT”

Leave a Reply

Your email address will not be published. Required fields are marked *