Skip to content
This repository has been archived by the owner on Sep 21, 2022. It is now read-only.

Commit

Permalink
Merge pull request #969 from htmlhero/master
Browse files Browse the repository at this point in the history
fix: make executeJS method work properly with arrow function
  • Loading branch information
sipayRT committed Jul 29, 2019
2 parents acedfc7 + 514fc1b commit 8ac8c1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tests-api/actions-builder.js
Expand Up @@ -387,7 +387,7 @@ function replaceStack(error, stack) {
}

function serializeFunc(func, args) {
return '(' + func.toString() + (_.isEmpty(args) ? '(window));' : `(window, '${args.join('\', \'')}'));`);
return '(' + func.toString() + (_.isEmpty(args) ? ')(window);' : `)(window, '${args.join('\', \'')}');`);
}

function findElement(element, browser) {
Expand Down

0 comments on commit 8ac8c1e

Please sign in to comment.