protractor invalid element state clear() code example
Example: invalid element state in selenium
webDriverWait.until(webDriver -> webElement.getAttribute("aria-readonly").equals("false") && webElement.getAttribute("aria-disabled").equals("false"));