I came across typing.io site. It is nice. I was wondering whether I can write a Java/Groovy/Javascript program to simulate the typing process.
Is that possible to do so?
I came across typing.io site. It is nice. I was wondering whether I can write a Java/Groovy/Javascript program to simulate the typing process.
Is that possible to do so?
如果您要问如何向任何站点上的任何组件发送密钥,我会回答:
Selenium Webdriver应该可以完成这项工作。
有关基本示例,请参阅: http ://seleniumhq.org/docs/03_webdriver.html
根据您的喜好,您可以使用 java 或 javascript 实现解决方案。
密钥发送自身的重要方法是:
WebElement element = ...
// Enter keys to type on element
element.sendKeys("Magic!");