mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
chore(frame): minor refactor in FrameManager (#2597)
This commit is contained in:
parent
f6393d876e
commit
7d64d40d66
@ -367,8 +367,7 @@ class Frame {
|
|||||||
*/
|
*/
|
||||||
async $eval(selector, pageFunction, ...args) {
|
async $eval(selector, pageFunction, ...args) {
|
||||||
const document = await this._document();
|
const document = await this._document();
|
||||||
const value = await document.$eval(selector, pageFunction, ...args);
|
return document.$eval(selector, pageFunction, ...args);
|
||||||
return value;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user