onchange will work only if the value of the textbox changed compared to the value it had before, so for the first time it won't work because ... ... <看更多>
Search
Search
onchange will work only if the value of the textbox changed compared to the value it had before, so for the first time it won't work because ... ... <看更多>
Try this, get the value inside the input box and compare. WebElement A = driver.findElementById("locator"); String text = A.getAttribute("value"); if(text. ... <看更多>