How to send keystrokes to the focused control

Ask general questions here.
HansSchl
Posts: 58
Joined: Wed Sep 19, 2018 10:05 am

How to send keystrokes to the focused control

Post by HansSchl » Mon Jul 20, 2020 11:02 am

What must I do to send keystrokes to the control of the AUT which currently has the input focus? (The background is that I want to verify that the correct control is focused.)

User avatar
Stub
Posts: 373
Joined: Fri Jul 15, 2016 1:35 pm

Re: How to send keystrokes to the focused control

Post by Stub » Mon Jul 20, 2020 11:27 am

Just type the key sequence in without specifying a target repository item? Or use a more general/higher level repository item that represents the thing you're working with perhaps? Both seem to work for me.