lib/commands/screenshot.js
function (path, pathname, hash, uuid) {
    this.actionQueue.push(this.webdriverClient.screenshot.bind(this.webdriverClient));
    this.actionQueue.push(this._screenshotCb.bind(this, path, pathname, hash, uuid));
    return this;
  }
function (path, pathname, hash, uuid) {
    this.actionQueue.push(this.webdriverClient.screenshot.bind(this.webdriverClient));
    this.actionQueue.push(this._screenshotCb.bind(this, path, pathname, hash, uuid));
    return this;
  }
function ( path , pathname , hash , uuid ) { this . actionQueue . push ( this . webdriverClient . screenshot . bind ( this . webdriverClient ) ) ; this . actionQueue . push ( this . _screenshotCb . bind ( this , path , pathname , hash , uuid ) ) ; return this ; }
Makes an screenshot of the current page

@method screenshot
@param {string} path Root directory path
@param {string} pathname Pathname of the screenshot path
@param {string} hash Unique hash of that fn call
@param {string} uuid Unique hash of that fn call
@chainable
Makes an screenshot of the current page