lib/browser.js
function (browserName, config) {
    var browser = this._verfiyBrowserConfig(browserName, config);
    var platform = this._verfiyPlatformConfig(browser);
    var driverConfig = config.get('driver.sauce');
    var desiredCaps = {
      browserName: browser.actAs,
      platform: platform,
      'screen-resolution': (browser['screen-resolution'] || null),
      version: (browser.version || this.desiredCapabilities['browser-version']),
      name: driverConfig.name || this.desiredCapabilities.name
    };

    // check if the user added tags
    if (driverConfig.tags) {
      desiredCaps.tags = driverConfig.tags;
    }

    // check if the user added a build id
    if (driverConfig.build) {
      desiredCaps.build = driverConfig.build;
    }

    return desiredCaps;
  }
function (browserName, config) {
    var browser = this._verfiyBrowserConfig(browserName, config);
    var platform = this._verfiyPlatformConfig(browser);
    var driverConfig = config.get('driver.sauce');
    var desiredCaps = {
      browserName: browser.actAs,
      platform: platform,
      'screen-resolution': (browser['screen-resolution'] || null),
      version: (browser.version || this.desiredCapabilities['browser-version']),
      name: driverConfig.name || this.desiredCapabilities.name
    };

    // check if the user added tags
    if (driverConfig.tags) {
      desiredCaps.tags = driverConfig.tags;
    }

    // check if the user added a build id
    if (driverConfig.build) {
      desiredCaps.build = driverConfig.build;
    }

    return desiredCaps;
  }
function ( browserName , config ) { var browser = this . _verfiyBrowserConfig ( browserName , config ) ; var platform = this . _verfiyPlatformConfig ( browser ) ; var driverConfig = config . get ( 'driver.sauce' ) ; var desiredCaps = { browserName : browser . actAs , platform : platform , 'screen-resolution' : ( browser [ 'screen-resolution' ] || null ) , version : ( browser . version || this . desiredCapabilities [ 'browser-version' ] ) , name : driverConfig . name || this . desiredCapabilities . name } ; // check if the user added tags if ( driverConfig . tags ) { desiredCaps . tags = driverConfig . tags ; } // check if the user added a build id if ( driverConfig . build ) { desiredCaps . build = driverConfig . build ; } return desiredCaps ; }
Generates the desired capabilities for this session

@method _generateDesiredCaps
@param {string} browserName The browser name
@param {object} config Daleks internal config helper
@return {object} The sessions desired capabilities
@private
Generates the desired capabilities for this session