lib/commands/element.js
function (selector, expected, hash) {
    this.actionQueue.push(this.webdriverClient.element.bind(this.webdriverClient, selector));
    this.actionQueue.push(this.webdriverClient.text.bind(this.webdriverClient, selector));
    this.actionQueue.push(this._textCb.bind(this, selector, hash, expected));
    return this;
  }
function (selector, expected, hash) {
    this.actionQueue.push(this.webdriverClient.element.bind(this.webdriverClient, selector));
    this.actionQueue.push(this.webdriverClient.text.bind(this.webdriverClient, selector));
    this.actionQueue.push(this._textCb.bind(this, selector, hash, expected));
    return this;
  }
function ( selector , expected , hash ) { this . actionQueue . push ( this . webdriverClient . element . bind ( this . webdriverClient , selector ) ) ; this . actionQueue . push ( this . webdriverClient . text . bind ( this . webdriverClient , selector ) ) ; this . actionQueue . push ( this . _textCb . bind ( this , selector , hash , expected ) ) ; return this ; }
Checks if an element has the expected text

@method text
@param {string} selector Selector expression to find the element
@param {string} expected The expected text content
@param {string} hash Unique hash of that fn call
@chainable
Checks if an element has the expected text