Skip to content
Browse files

Fix property collision bug where nothing launches.

  • Loading branch information...
1 parent edab41a commit e9c16c7f4917b7a1161258b11cc5c2103b93c76e @reid reid committed Feb 14, 2013
Showing with 3 additions and 4 deletions.
  1. +3 −4 lib/hub/webdriver-collection.js
View
7 lib/hub/webdriver-collection.js
@@ -6,7 +6,7 @@ var url = require("url");
var getLocalIP = require("../local-ip");
function WebDriverCollection(options) {
- this.browsers = options.browsers;
+ this.desiredCapabilities = options.browsers;
this.hub = options.hub;
this.remote = options.hub.webdriver;
@@ -123,11 +123,10 @@ WebDriverCollection.prototype._launch = function (desired, cb) {
WebDriverCollection.prototype.launch = function (cb) {
var self = this,
- browsers = self.browsers,
queue = [];
- browsers.forEach(function (browser) {
- queue.push(self._launch.bind(self, browser));
+ self.desiredCapabilities.forEach(function (capability) {
+ queue.push(self._launch.bind(self, capability));
});
async.parallel(queue, cb);

0 comments on commit e9c16c7

Please sign in to comment.
Something went wrong with that request. Please try again.