diff --git a/lib/FrameManager.js b/lib/FrameManager.js index 65d43e16..ea0758ed 100644 --- a/lib/FrameManager.js +++ b/lib/FrameManager.js @@ -367,8 +367,7 @@ class Frame { */ async $eval(selector, pageFunction, ...args) { const document = await this._document(); - const value = await document.$eval(selector, pageFunction, ...args); - return value; + return document.$eval(selector, pageFunction, ...args); } /**