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.97k stars 3.67k forks source link

[Feature] Allow ['camera', 'microphone'] permissions preset for WebKit browser #28430

Open Xotabu4 opened 11 months ago

Xotabu4 commented 11 months ago

Currently when trying to set ['camera', 'microphone'] permissions for webkit browser, error is thrown Error: browserContext.newPage: Unknown permission: microphone

But when working in Webkit manually - it seems like everything to support fake webcam is there, only pre-setting permissions for webkit should be implemented.

Would be really valuable for webRTC testing to have ability to run webkit with fake webcam and microphone.

image image image

Xotabu4 commented 11 months ago

Related to #5445

pavelfeldman commented 11 months ago

Open to a PR, but it ain't going to be easy.

acanyasar commented 11 months ago

I am testing a video communication app. This would be very helpful. @pavelfeldman

giovegaq commented 11 months ago

I'm getting this issue

zayehalo commented 8 months ago

This is also crucial for us to be able to test our apps on webkit.

erickitomaz commented 8 months ago

Video sessions is one of our chore features in our app, would be nice to have this feature already implemented.

DvaKompota commented 1 week ago

Needed for testing bar/QR codes scanning with iPads