Hi, a quick question: how do I override a certain permission on a page when using PuppeteerCrawler? Something like so:
...,
preNavigationHooks: [
async (crawlingContext, gotoOptions) => {
const { page, browserController: { browser } } = crawlingContext;
const context = await browser.defaultBrowserContext();
context.clearPermissionOverrides();
context.overridePermissions('some-domain', ['some-feature']);
}
],
...
When I run it, I get a warning message:
WARN PuppeteerCrawler: Reclaiming failed request back to the list or queue. Cannot read private member from an object whose class did not declare it
I understand that I'm accessing private prop but how/where do I override such permissions on PuppeteerCrawler? π
Thanks! π