I have an input field like the following:
<input class="..." maxlength="..." title="..." size="..." value="..." name="..."/>
This looks like an text input field, but there is no type-attribute. I am trying to clear the content of the field and write something into it.
element.clear();
element.sendKeys("abc");
The problem is that both methods don’t work. I am asking myself if the missing type=”text”-attribute is the problem or not. If not, why does this not work?
Try using a
click()on that element beforeclear()&sendKeys().