Mastering Development

How to give access or dismiss to the microphone and camera popup in Chromedriver while running the Selenium test?

I have applied the below ChromeOptions but not working for me. Due to this, I am unable to type on the "Enter Pin" input box on the screen. ChromeOptions chromeOptions = new ChromeOptions(); chromeOptions.addArguments("–disable-user-media-security=true"); dvr = new ChromeDriver(chromeOptions);