diff --git a/lib/Page.js b/lib/Page.js index cbc15b0c..00120139 100644 --- a/lib/Page.js +++ b/lib/Page.js @@ -39,7 +39,7 @@ class Page extends EventEmitter { static async create(client, ignoreHTTPSErrors, appMode, screenshotTaskQueue) { await client.send('Page.enable'); - const {frameTree} = await client.send('Page.getResourceTree'); + const {frameTree} = await client.send('Page.getFrameTree'); const page = new Page(client, frameTree, ignoreHTTPSErrors, screenshotTaskQueue); await Promise.all([