Open blohamen opened 4 years ago
You should enable interception by await page.setRequestInterception(true)
But it will raise error
UnhandledPromiseRejectionWarning: Error: Protocol error (Fetch.enable): Fetch domain is only supported with --enable-features=NetworkService
I tried setting that flag in args but cannot launch electron
await puppeteer.launch({headless: false, args: ['--enable-features=NetworkService']})
I also tried npx and can't launch electron as the same
npx electron --enable-features=NetworkService
The electron docs says https://www.electronjs.org/docs/all#breaking-changes-networkservice-draft
We don't currently have an estimate of when we will enable
NetworkService
by default in Electron, but as Chromium is already removing non-NetworkService
code, we might switch before Electron 10.
I'm sorry setRequestInterception
is not supported now.
Hi, can somebody help with intercepting requests and response mocking by using this library?
I can intersept request but when I setting down mock response I have problem that request doesn't ends up