Hilfe durchsuchen

Vorsicht vor Support-Betrug: Wir fordern Sie niemals auf, eine Telefonnummer anzurufen, eine SMS an eine Telefonnummer zu senden oder persönliche Daten preiszugeben. Bitte melden Sie verdächtige Aktivitäten über die Funktion „Missbrauch melden“.

Learn More

Firefox headless: Grant access to camera/microphone in Selenium test

  • Keine Antworten
  • 0 haben dieses Problem
  • 13 Aufrufe
more options

I'm currently building/testing a website with Firefox and Selenium, which requires interacting with the camera/microphone.

To avoid having real hardware present, I've configured media.naviagator.streams.fake=true, however for some time now, this isn't enough anymore (not exactly sure for how long).

When running normally (i.e. not headless), I can see that the permission prompt ("Allow website to use your camera/microphone?"), but I can't interact with it from Selenium.

Is there a way to disable this prompt programmatically?

I'm currently building/testing a website with Firefox and Selenium, which requires interacting with the camera/microphone. To avoid having real hardware present, I've configured media.naviagator.streams.fake=true, however for some time now, this isn't enough anymore (not exactly sure for how long). When running normally (i.e. not headless), I can see that the permission prompt ("Allow website to use your camera/microphone?"), but I can't interact with it from Selenium. Is there a way to disable this prompt programmatically?