microsoft / playwright

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
https://playwright.dev
Apache License 2.0
66.31k stars 3.62k forks source link

[Question] Which features are supported by which browsers? #16577

Closed Rafiot closed 5 months ago

Rafiot commented 2 years ago

Your question

Permissions

I've been playing around and realized that some of the permissions (at least midi, midi-sysex, notifications, and camera) aren't supported by webkit in mobile mode, and playwright raises a playwright._impl._api_types.Error: Unknown permission: <perm> when calling context.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?

aslushnikov commented 2 years ago

We need docs to clarify things here!

Rafiot commented 2 years ago

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 :] ).

Rafiot commented 2 years ago

Quick update on the permissions: if I'm not mistaken, firefox supports geolocation and notifications and webkit supports geolocation.

siddharth2023 commented 1 year ago

Is it now possible to get a list of permissions programmatically? In the scope of a browser/context?

Willow92 commented 1 year ago

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?

pavelfeldman commented 5 months ago

Why was this issue closed?

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.