SendKeys Method

Use the SendKeys method to send a key command to a control.

The Sendkeys method relies on native injection to work and this is not available when you use the Chrome Universal Web Adapter to interrogate the Chrome browser. You can, however, use this methods to interrogate controls on the webpage being displayed, just not Chrome browser controls, such as Refresh, Minimize, and Maximize.

See the Sample Automation for an example using the SendKeys method. This method has two parameters, as shown in this design block:

Use the Keys parameter to send key values or commands:

Key

Code

Shift

+

Ctrl

^

Alt

%

Use the Focus parameter to specify whether the control should receive focus when the key or command is sent. This parameter is usually set to True to focus the control.

 


Privacy | Trademarks | Terms of Use | Feedback

Updated: 18 June 2020

© 2016 - 2020 Pegasystems Inc.  Cambridge, MA All rights reserved.

 

OpenSpan data classification label