I'm trying to end a text to the input field named City (HTML code is mentioned below) using
driver.findElement(By.id("City")).sendKeys("Brussels");
The script runs and inserts the city as Brussels for few seconds and then the value 'Brussels' vanishes immediately. The script then errors out with the message
Exception Exception in thread "main" org.openqa.selenium.ElementNotInteractableException: element not interactable
HTML Code*<input class="form-control input-block-level form-text required" id="City" autocomplete="new-password" data-validator="validateFieldText" data-errorfield="cityError" onblur="validate(this)" onfocus="focusField(this)" data-drupal-selector="edit-city" type="text" name="City" value="" size="60" maxlength="128" placeholder="City" required="required" aria-required="true">