Skip to main content


         This documentation site is for previous versions. Visit our new documentation site for current releases.      
 

Interact with browser controls using the PerformClick or SendKeys methods

Updated on October 19, 2022

The PerformClick and SendKeys methods both rely on native injection to work and this is not available when you use the Universal Web Adapter to interrogate the Chrome or Edge browser. You can, however, use these methods to interrogate controls on the webpage being displayed, just not Chrome or Edge browser controls, like Refresh, Minimize, and Maximize.

Instead, you have the following options:

  • Use the Windows adapter to interrogate a form control for the browser executable file. Set the UseKeys property to True to support multiple form instances. You may need to modify the match rules to allow Chrome or Edge forms to match.
  • Automate this form control with full native injection capabilities, such as using the PerformClick, Focus, and SendKeys methods.Note: You cannot associate a Windows adapter form control with a tab or a document running within it.

In this scenario, you cannot have Chrome or Edge running when the Windows adapter starts. For example, if Chrome is running, the system does not inject into the main Chrome process.

For more information on these methods, see General Windows control properties, methods, and events.

Have a question? Get answers now.

Visit the Support Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us