diff --git a/lib/devices/android/chrome.js b/lib/devices/android/chrome.js index 994bc9100..cb6518684 100644 --- a/lib/devices/android/chrome.js +++ b/lib/devices/android/chrome.js @@ -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) {