fixed chrome sessionId bug

This commit is contained in:
sebv
2014-05-22 14:44:41 +08:00
parent 7d83603b1c
commit 155004a709

View File

@@ -56,7 +56,11 @@ ChromeAndroid.prototype.start = function (cb, onDie) {
this.prepareChromedriver.bind(this),
this.unlock.bind(this),
this.createSession.bind(this)
], cb);
], function (err, results) {
if (err) return cb(err);
var sessionId = results[3];
cb(null, sessionId);
});
};
ChromeAndroid.prototype.prepareChromedriver = function (cb) {