title: Nightwatch: wait for element without pass/fail result
body: <p>Related questions: </p>
  
  <ul>
  <li><a href="https://stackoverflow.com/questions/39051214/wait-for-element-present-without-error">wait for element present without error</a></li>
  <li><a href="https://stackoverflow.com/questions/31687027/nightwatchjs-how-to-check-if-element-exists-without-creating-an-error-failure-e">Nightwatchjs: how to check if element exists without creating an error/failure/exception</a></li>
  <li><a href="https://stackoverflow.com/questions/10720325/selenium-webdriver-wait-for-complex-page-with-javascriptjs-to-load">Selenium WebDriver : Wait for complex page with JavaScript(JS) to load</a></li>
  </ul>
  
  <p>Whenever I load my web-page, I need to wait for ajax calls to complete. I currently do this with:</p>
  
  <pre class="lang-js prettyprint-override"><code>browser.waitForElementNotPresent(
    "cssSelector_For_HTML_afterAJAXComplete",
    10000 //timeout
  );
  </code></pre>
  
  <p>This adds an extra assertion to my test though, and makes the test-count for the report artificially larger than necessary.</p>
  
  <p>Any ideas?</p>