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.
This commit is contained in:
Andrey Lushnikov
2017-11-03 18:37:21 -07:00
committed by GitHub
parent 7bc55ab7fd
commit 88ba52a363

View File

@@ -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([