Skip to content

Commit

Permalink
fix(page): page.waitForFunction should work with multiline strings (#…
Browse files Browse the repository at this point in the history
…3727)

Fixes #3723
  • Loading branch information
fringd authored and aslushnikov committed Jan 11, 2019
1 parent 89fc2ad commit f731973
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/FrameManager.js
Expand Up @@ -977,7 +977,7 @@ class WaitTask {
this._frame = frame;
this._polling = polling;
this._timeout = timeout;
this._predicateBody = helper.isString(predicateBody) ? 'return ' + predicateBody : 'return (' + predicateBody + ')(...args)';
this._predicateBody = helper.isString(predicateBody) ? 'return (' + predicateBody + ')' : 'return (' + predicateBody + ')(...args)';
this._args = args;
this._runCount = 0;
frame._waitTasks.add(this);
Expand Down

0 comments on commit f731973

Please sign in to comment.