title: confirm alert window in phantom.js
body: <p>i have this function which find button and click it, but after that alert appears and i need to confirm it using phantom.js</p>
  
  <pre><code>function() {
    page.evaluate(function() {
      $('.item-list clicked').first().find($('.comment-delete')).find('a').click();
    })
  }
  </code></pre>
  
  <p>may be i can emulate function which call alert whithout click immediately ? or use function waitFor for waiting this alert?(unlikely this, waitFor waiting only for DOM objects i think so)</p>