I am a very beginner to use Java and Selenium to write a test. I have this web element:
<input type="number" name="yield_target"
placeholder="Yield Target" value="0.00" min="0" step="any">
But I can not clear it by:
WebElement we = wait.until(ExpectedConditions.visibilityOfElementLocated
(By.xpath("//input[@placeholder='Yield Target']")));
we.clear();
But I can write into it, for example if I use:
action.sendKeys(we, "223").build().perform();
it will be 0.00223 instead of 223.