lib/commands/element.js
function (selector, expected, hash) {
    this.actionQueue.push(this.webdriverClient.element.bind(this.webdriverClient, selector));
    this.actionQueue.push(this.webdriverClient.selected.bind(this.webdriverClient));
    this.actionQueue.push(this._selectedCb.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.selected.bind(this.webdriverClient));
    this.actionQueue.push(this._selectedCb.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 . selected . bind ( this . webdriverClient ) ) ; this . actionQueue . push ( this . _selectedCb . bind ( this , selector , hash , expected ) ) ; return this ; }
Checks if an element is selected

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