I've read over this promising thread to try and enable this, but the suggestions aren't working or I'm not following well enough. I tried both methods spelled out in the previous link but no luck. There are no errors in the IDE and Chrome launches fine, but camera and mic still aren't allowed.(details below).
I should also mention that I'm not just trying to make the pop up go away, I need the camera and microphone for testing our application.
I'm using Java 8, Selenium Webdriver 3.8.1, Chrome v.64.
Option 1
ChromeOptions options = new ChromeOptions();
options.addExtensions(new File("C:\\Program Files (x86)\\Google\\Chrome\\Application\\64.0.3282.140\\default_apps\\1.4_0.crx"));
options.addArguments("start-maximized");
Map<String, Object> prefs = new HashMap<String, Object>();
prefs.put("profile.content_settings.exceptions.media_stream_camera.'https://<oursite>:443,'.setting","1");
prefs.put("profile.content_settings.exceptions.media_stream_mic.'https://<oursite>:443,'.setting","1");
options.setExperimentalOption("prefs", prefs);
System.setProperty("webdriver.chrome.driver", "C:\\Tools\\chromedriver_win32\\chromedriver.exe");
WebDriver driver = new ChromeDriver(options);
driver.get(<oursite>);
Option 2
options.addArguments("user-data-dir=C:\\Users\\<user>\\AppData\\Local\\Google\\Chrome\\User Data\\Default");
Thanks for any help offered (especially if it works).