lib/commands/element.js
function (selector, expected, hash) {
    this.actionQueue.push(this.webdriverClient.elements.bind(this.webdriverClient, selector));
    this.actionQueue.push(this._getNumberOfElementsCb.bind(this, selector, hash, expected));
    return this;
  }
function (selector, expected, hash) {
    this.actionQueue.push(this.webdriverClient.elements.bind(this.webdriverClient, selector));
    this.actionQueue.push(this._getNumberOfElementsCb.bind(this, selector, hash, expected));
    return this;
  }
function ( selector , expected , hash ) { this . actionQueue . push ( this . webdriverClient . elements . bind ( this . webdriverClient , selector ) ) ; this . actionQueue . push ( this . _getNumberOfElementsCb . bind ( this , selector , hash , expected ) ) ; return this ; }
Returns the number of elements matched by the selector

@method getNumberOfElements
@param {string} selector Selector expression to find the elements
@param {integer} expected Expected number of matched elements
@param {string} uuid Unique hash of that fn call
@chainable
Returns the number of elements matched by the selector