lib/commands/page.js
function (expected, hash) {
    this.actionQueue.push(this.webdriverClient.alertText.bind(this.webdriverClient));
    this.actionQueue.push(this._alertTextCb.bind(this, expected, hash));
    return this;
  }
function (expected, hash) {
    this.actionQueue.push(this.webdriverClient.alertText.bind(this.webdriverClient));
    this.actionQueue.push(this._alertTextCb.bind(this, expected, hash));
    return this;
  }
function ( expected , hash ) { this . actionQueue . push ( this . webdriverClient . alertText . bind ( this . webdriverClient ) ) ; this . actionQueue . push ( this . _alertTextCb . bind ( this , expected , hash ) ) ; return this ; }
Checks the text of an alaert, prompt or confirm dialog

@method alertText
@param {string} expected Expected alert text
@param {string} hash Unique hash of that fn call
@chainable
Checks the text of an alaert prompt or confirm dialog