I ran into a problem while switching from firefoxdriver to chromedriver with selenium, it was working fine in FF but now when I try to clear a date input field I have this e
Sometimes you can change the xpath a bit and get to the point that it works:
For example for this piece of DOM:
if you use:
wait.until(ExpectedConditions.visibilityOfElementLocated(By
.xpath("//tr[@class='table-filters']//td"))).clear();
it will not work, but:
wait.until(ExpectedConditions.visibilityOfElementLocated(By
.xpath("//tr[@class='table-filters']//td//input"))).clear();
Works.