Interact with browser controls using the PerformClick or SendKeys methods
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.
Previous topic Hiding or reparenting Next topic Specify domains