diff --git a/bin/elementexplorer.js b/bin/elementexplorer.js index c4377d18e..005d9f04e 100755 --- a/bin/elementexplorer.js +++ b/bin/elementexplorer.js @@ -80,7 +80,7 @@ var flowEval = function(code, context, file, callback) { process.domain.emit('error', vmErr); process.domain.exit(); } - return webdriver.promise.fulfilled(result); + return result.then(function(val) {return val}); }).then(function(res) { if (!vmErr) { callback(null, res);