You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My specific use case for altering site permissions is that I am testing a subscription workflow for push notifications, and I would like to test the user experience when the value of Notification.permission is "default", "granted", or "denied".
# in headless modebrowser.evaluate("Notification.permission")# => "denied"# in non-headless modebrowser.evaluate("Notification.permission")# => "default"
I'm wondering if there is a way to set this value to "granted", or to modify site permissions in general. I could not find anything relevant to this in the README, the code, or the command line args.
Activity
route commentedon Jul 13, 2023
@brian-kephart hey, you could try set permissions with https://chromedevtools.github.io/devtools-protocol/tot/Browser/#method-grantPermissions
If that works please leave feedback or maybe send a PR ;)