0

I'm writing and automation for a WebRTC client that requires a microphone stream to be allowed on Chrome

Since i'm using chromedriver to perform all the actions, i'm looking for a way to allow the microphone automatically when starting the script

Does anyone have any idea how to do that?

Shizzle
  • 961
  • 3
  • 10
  • 27

1 Answers1

1

You want the use-fake-device-for-media-stream and use-fake-ui-for-media-stream command line flags. See here for what the adapter.js project uses for automated tests. The python bits should be similar to the JS bits shown there hopefully.

Philipp Hancke
  • 15,855
  • 2
  • 23
  • 31