I am trying to:
- Clear an existing value in the text box (to be specific, this is a first name field)
- Then save it with no value in the text box.
But somehow clear();
does not clears the existing value. It retains the existing value (first name).
Does anyone know how to fix this?
driver.findElement(By.id("PrimaryContact_FirstName_Value")).clear();