I have a little problem with the sendKeys()
. It doesn't work in only one field in my form.
when I fill in the fields, the value of my field is not changed and the test passed without error message.
Ps: I tried to send the value +newVariable.getDecimalPlaces()
in another field and it works.
The problem is only from this field, knowing the XPath
is correct because I did click on it.
Anyone to help me, please! Thank you :)
WebElement decimalPlacesTxtBox = driver.findElement(By.xpath(AreaUtils.XPATH_DECIMAL_PLACES));
action.doubleClick(decimalPlacesTxtBox).perform();
decimalPlacesTxtBox.sendKeys("" +newVariable.getDecimalPlaces());
**The xpath :**
public static final String XPATH_DECIMAL_PLACES = "//*[@id=\"floatValue\"]";