fix: add setRequestInterception (#1312)

Fixes #826
This commit is contained in:
xeaon
2020-12-11 07:09:08 +01:00
committed by GitHub
parent 27cfb94de8
commit a44621f8f5
+1
View File
@@ -160,6 +160,7 @@ async function lookup(browser: Browser, store: Store) {
? await browser.createIncognitoBrowserContext()
: browser.defaultBrowserContext();
const page = await context.newPage();
await page.setRequestInterception(true);
page.setDefaultNavigationTimeout(config.page.timeout);
await page.setUserAgent(await getRandomUserAgent(browser));