How do I allow Chrome to use my microphone programmatically?

后端 未结 5 583
耶瑟儿~
耶瑟儿~ 2020-12-28 09:12

I am currently trying to run some tests made with webdriverjs and chromedriver but they need microphone permissions.

This is the popup that shows up:

<
5条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-28 09:39

    Similarly, for use in Splinter

        from splinter import Browser
        from selenium.webdriver.chrome.options import Options 
        chrome_options = Options() 
        chrome_options.add_argument("--use-fake-ui-for-media-stream") 
        Browser('chrome', ** {'executable_path':'chromedriver'},options=chrome_options)
    

提交回复
热议问题