title: How can I wait for a button to be enabled with casperjs?
body: <p>I'm trying to automate a form that has the following button for submission:</p>
  
  <pre><code>&lt;input type="button" class="inactiveswbuttonNew" id="btnSearch" aria-label="Search" style="border: 0px none !important; background-image: url(https://www.anthem.com/images/ProviderFinder/SearchWizard/search2_button.png);" disabled&gt;
  </code></pre>
  
  <p>The issue is that the button is disabled until you've filled out all of the required info on the form. So, I'd like to have casperjs wait for the button to become enabled before clicking. I've tried <code>this.waitForSelectorTextChange('#btnSearch');</code> but that just times out.</p>
  
  <p>Any ideas on how to accomplish this?</p>
  
  <p>Thanks!</p>