I have been writing selenium scripts for a while in Java. I encountered a very weird issue today.
Here is the issue: I cleared a text field using webelement.clear()
It's possible that the fields you're trying to fill has autocomplete
attribute set to on. [Reference]
If clear()
works when the line executes then it's safe to say that this is not a webdriver specific issue.
It would help if you can show the html snippet of the page section you're working on.
Possible areas of debugging:
Good luck!
PS: Those Thread.sleep
(s) are not advisable.