title: How to wait for input element enabled in selenium webdriver?
body: <p>I am writing script to select and enter value in below screen in JIRA. </p>
  
  <p><a href="https://i.stack.imgur.com/byQLF.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/byQLF.jpg" alt="enter image description here"></a>
  The 'issue type' is an 'input' element with autocomplete property:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="false" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;input type="text" autocomplete="off" role="combobox" aria-autocomplete="list" aria-haspopup="true" aria-expanded="false" class="text aui-ss-field ajs-dirty-warning-exempt" id="issuetype-field" aria-controls="issuetype-suggestions"&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Right after entering value for 'input type', the rest of fields such as 'summary' grey out for a few seconds. If I try to enter value for 'summary' field right after, using following code:</p>
  
  <pre><code>myDriver.findElement(By.id("summary")).sendKeys(summary);
  </code></pre>
  
  <p>summary field will not be entered, rather an error "Element not found in the cache - perhaps the page has changed since it was looked up.." will happen. </p>
  
  <p>HTML code for 'summary' field is: </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="false" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;input type="text" value="" name="summary" id="summary" class="text long-field"&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>So <strong>what i want is just to wait for 'summary' input field to be enabled</strong> and then sendkey to it. I am looking for something like </p>
  
  <pre><code>ExpectedConditions.presenceOfElementLocated 
  </code></pre>
  
  <p>but instead i want '<strong>enabled</strong>', not <code>presenceOfElementLocated</code> or <code>visibilityOfElementLocated</code>. I do not want to use <code>Thread.sleep()</code> either.</p>
  
  <p>Any suggestions?</p>