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:
parent
7bc55ab7fd
commit
88ba52a363
@ -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([
|
||||
|
Loading…
Reference in New Issue
Block a user