What I'm trying to do
Test a website that requires microphone access with playwright
The problem
Pop-up in question comes up and seems to ignore supposedly granted permissions. Permission can be given manually, but this seems against the spirit of automation.
What I tried
with sync_playwright() as p:
browser = p.chromium.launch(headless=False)
context = browser.new_context(permissions=['microphone'])
...
Granting permissions via context doesn't work for some reason. The permission pop-up still comes up.
I also tried to record a walkthrough with playwrights record script, but it's not recording granting microphone permissions.
