Closed Rafiot closed 5 months ago
We need docs to clarify things here!
I'll definitely take that too! But a way to get all the available permissions programmatically would be neat too, especially in order to automate the thing (I'm not using playwright the way you aimed it to be used :] ).
Quick update on the permissions: if I'm not mistaken, firefox supports geolocation
and notifications
and webkit supports geolocation
.
Is it now possible to get a list of permissions programmatically? In the scope of a browser/context?
Hello! I also cannot use 'camera' permission on mobile-webkit. Receiving the error "browserContext.newPage: Unknown permission: camera". Is there another way (workaround) to enable the camera on the mobile webkit with Playwright?
Thank you for your involvement. This issue was closed due to limited engagement (upvotes/activity), lack of recent activity, and insufficient actionability. To maintain a manageable database, we prioritize issues based on these factors.
If you disagree with this closure, please open a new issue and reference this one. More support or clarity on its necessity may prompt a review. Your understanding and cooperation are appreciated.
Your question
Permissions
I've been playing around and realized that some of the permissions (at least
midi
,midi-sysex
,notifications
, andcamera
) aren't supported by webkit in mobile mode, and playwright raises aplaywright._impl._api_types.Error: Unknown permission: <perm>
when callingcontext.grant_permissions
.Is there a way to know which permissions are supported in a specific context?
Browser Features
Mouse wheel isn't supported by webkit mobile (Device: BlackBerry Z30), and playwright raises a
playwright._impl._api_types.Error
. The same call works fine with chromium mobile (Device: Galaxy S5)It will be more complicated to get a list of the supported features in that case, but would you be up for raising more specific exceptions?