Is there a way to set site permissions? #377
Closed
brian-kephart
started this conversation in
General
Replies: 4 comments 1 reply
|
@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 ;) |
0 replies
|
Thanks for the tip! I still can't change the permissions, though. Something is happening, because the commands I tried ( browser.command "Browser.grantPermissions", permissions: ["notifications"] # returns {}
browser.evaluate "Notification.permission" # still "denied" |
0 replies
|
looks like a Chrome issue |
0 replies
|
I'm attempting to do something similar, but with page.driver.browser.command('Browser.grantPermissions', origin: page.server_url, permissions: ['clipboardReadWrite'])This, however throws the following error: |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Thanks for this great library!
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.permissionis"default","granted", or"denied".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.All reactions