How to press ALT+G in LeanFT
Question ID: 108225
0
0

I want to press two keys at one time in LeanFT, I know that we can use Keyboards class to press key in LeanFT.
I am trying to automate SAP GUI and there I want to open some menu option for which Object spy is not working and only way is to press ALT+G

Marked as spam
Posted by (Questions: 1, Answers: 0)
Asked on April 10, 2018 12:27 pm
687 views
Answers (2)
0
Private answer

In Java, you can actually use the below method

***EnumSet keyModifier = EnumSet.of(KeyModifier.ALT);
window.sendKeys(''G'', keyModifier);***

There are other key modifiers that u can use via enum. please find the list of keys that can be used:
***ALT,
CTRL,
LEFT_ALT,
LEFT_CTRL,
LEFT_SHIFT,
LEFT_WINDOWS_LOGO,
RIGHT_ALT,
RIGHT_CTRL,
RIGHT_SHIFT,
RIGHT_WINDOWS_LOGO,
SHIFT, WINDOWS_LOGO***

Hope this helps. :)

Marked as spam
Posted by (Questions: 0, Answers: 1)
Answered on November 16, 2018 3:40 pm
0
Private answer

You didn't indicate what language you are using in LeanFT, but have a look at this. It is for SendKeys (which is used in regular UFT, but you can use an equivilent)

https://admhelp.microfocus.com/leanft/en/14.03/NetSDKReference/HP.LFT.SDK~HP.LFT.SDK.ISupportSendKeys~SendKeys.html

Marked as spam
Posted by (Questions: 2, Answers: 477)
Answered on July 27, 2018 12:10 pm
EyeOnTesting

Welcome back to "EyeOnTesting" brought to you by Orasi Software, Inc.

X
Scroll to Top