From 88ba52a363c7cf7450a727c319d3d037c38f1060 Mon Sep 17 00:00:00 2001 From: Andrey Lushnikov Date: Fri, 3 Nov 2017 18:37:21 -0700 Subject: [PATCH] refactor: use Page.getFrameTree instead of Page.getResourceTree (#1275) This patch starts using Page.getFrameTree instead of Page.getResourceTree. The resource tree is experimental, whereas the frame tree is not. --- lib/Page.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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([