From 1a4eea4eb89362822dc86be6904c1ddfba95661e Mon Sep 17 00:00:00 2001 From: Hank Duan Date: Wed, 1 Oct 2014 18:26:58 -0700 Subject: [PATCH] fix(elementexplorer): elementexplorer hangs when returning ElementFinder --- bin/elementexplorer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);