Puppeteer: setRequestInterceptionEnabled is not a function?

Created on 20 Nov 2017  路  1Comment  路  Source: puppeteer/puppeteer

after updating from puppeteer 0.12.0 to 0.13.0 today, I got the following error message:

TypeError: page.setRequestInterceptionEnabled is not a function

After going back to 0.12.0, everything worked fine.

Is there a change in code? Why is it not working anymore?

Code:
await page.setRequestInterceptionEnabled(true);
await page.goto(curl, { waitUntil: 'networkidle', timeout: 1500000 });

Most helpful comment

It was renamed in https://github.com/GoogleChrome/puppeteer/releases/tag/v0.13.0.

page. setRequestInterception

>All comments

It was renamed in https://github.com/GoogleChrome/puppeteer/releases/tag/v0.13.0.

page. setRequestInterception

Was this page helpful?
0 / 5 - 0 ratings

Related issues

MehdiRaash picture MehdiRaash  路  3Comments

denniscieri picture denniscieri  路  3Comments

aslushnikov picture aslushnikov  路  3Comments

sradu picture sradu  路  3Comments

ngryman picture ngryman  路  3Comments