WebDriverException Element must be user-editable in order to clear it

Immanuel Fredrick picture Immanuel Fredrick · Feb 25, 2015 · Viewed 40.7k times · Source

I am trying to run test cases to perform reset password and I am facing this issue.

WebDriverException Element must be user-editable in order to clear it.

Basically i am accessing the page for entering the new password and doing this:

browser.$("#newPassword").text("password");

where execution of the above line throws the error.

Answer

mosaad picture mosaad · Jul 14, 2016

I had the same problem and it was because there was another element with the same id which was not an input field so it could not be cleared.