I have an "input"-WebElement that has a "onkeyup" AJAX call. (It's a order-amount field)
I want to check the error message that checks the amount entered against what's actually in stock with Selenium Webdriver in Java.
However, I think because of the "onkeyup" the input field always resets back to the defaul value "1" after the sendkeys from Webdriver. I tried with and without clear and also tried to check the field was empty after the clear.
Any idea how the field value reset can be prevent in spite of the "onkeyup"?