How do I enter text in textfield with onkeyup/onfocus javascript?
问题 We have a web application that I am trying to automate testing for, using Java, Web Driver and TestNG. The biggest challenge I'm facing (failing at) is to stay ahead of development and prevent the test framework from breaking with even minor code changes. Problem There's a text field that accepts numbers. Up till now, sendKeys did the job for me. In a recent change to the page source, when numbers are entered, commas get automatically inserted. So "50000" becomes "50,000" for example. Now