Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

Commit

Permalink
fix(elementexplorer): elementexplorer hangs when returning ElementFinder
Browse files Browse the repository at this point in the history
hankduan committed Oct 2, 2014
1 parent 710cad7 commit 1a4eea4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/elementexplorer.js
Original file line number Diff line number Diff line change
@@ -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);

0 comments on commit 1a4eea4

Please sign in to comment.