Go to Robotic Automation version 22.1 documentation

SendKeys method

Use the SendKeys method to send a key command to a control. The Sendkeys method relies on native injection to work.  You can use this method to interrogate controls on the webpage that is being displayed, such as Refresh, Minimize, and Maximize.

Note:  If you are automating the Google Chrome or Mozilla Firefox browsers, the SendKeys method is only available for the Web and Universal Web Adapter in version 19.1.14.0 and later.

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: 28 March 2024

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

 

OpenSpan data classification label