Zoeken in Support

Vermijd ondersteuningsscams. We zullen u nooit vragen een telefoonnummer te bellen, er een sms naar te sturen of persoonlijke gegevens te delen. Meld verdachte activiteit met de optie ‘Misbruik melden’.

Learn More

Deze conversatie is gearchiveerd. Stel een nieuwe vraag als u hulp nodig hebt.

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

  • Geen antwoorden
  • 0 hebben dit probleem
  • 13 weergaven
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?