How can i click or disable Mic. and Camera Pop Up while testing in Edge?
I'm using Java.
I did this code with Chrome browser and it worked but it doesn't work with Edge because Eclipse doesn't support the "options.addArguments". I tryed to download newest version of Eclipse and still no success.
ChromeOptions options = new ChromeOptions();
options.addArguments("use-fake-device-for-media-stream");
options.addArguments("use-fake-ui-for-media-stream");
HashMap<String, Object> prefs = new HashMap<String, Object>();
prefs.put("profile.default_content_setting_values.media_stream_mic", 1);
prefs.put("profile.default_content_setting_values.media_stream_camera", 1);
prefs.put("profile.default_content_setting_values.geolocation", 1);
prefs.put("profile.default_content_setting_values.notifications", 1);
options.setExperimentalOption("prefs", prefs);
System.setProperty("webdriver.chrome.driver", "C:\\QA\\Automation\\Workspace\\chromedriver.exe");
WebDriver driver = new ChromeDriver(options);
Thanks!