开发者

Issues with SendKeys

开发者 https://www.devze.com 2023-01-06 04:30 出处:网络
Wondering what is the problem with SendKeys? Or is it ok to use if you have开发者_JAVA技巧 no other choice?Simulating user input generally indicates a hack, since the user interface is not an API (app

Wondering what is the problem with SendKeys? Or is it ok to use if you have开发者_JAVA技巧 no other choice?


Simulating user input generally indicates a hack, since the user interface is not an API (application interface), so its format is often inexact, subject to change and generally not intended to be used from code.

Sometimes, however, there is no other choice. Whether it's "OK" or not depends on what the alternatives are.


You should be much better off with Ui Automation

0

精彩评论

暂无评论...
验证码 换一张
取 消