Override browser permission on PuppeteerCrawler
Hi, a quick question: how do I override a certain permission on a page when using PuppeteerCrawler? Something like so:
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! 🙏6 Replies
xenial-blackOP•3y ago
Hi @vladdy, can you please assist with this? 🙏
metropolitan-bronze•3y ago
Oh..interesting
Let me take a look
xenial-blackOP•3y ago
Thank you!
metropolitan-bronze•3y ago
do you happen to have a stacktrace too?
also, can you try getting the context via page.browserContext() instead (followed by the same context.overridePermissions calls)?
xenial-blackOP•3y ago
@stacktrace:
Cool, testing...
Perfect! That works. Thanks! ✨
metropolitan-bronze•3y ago
oh, sweet
No worries