Selenium WebDriver – Edge driver has Sidebar – need do disable
I am using Selenium / Java and the edge driver. Edge keeps displaying a Side bar that takes screen focus, causing my scripts to error. I cannot figure out which edge option it takes to disable this side bar. Below is my current code when setting up the Edge Driver. Can someone please help with the edge option I would need to get this bar to disable?
case "edge":
HashMap<String, Object> edgePrefs = new HashMap<String, Object>();
edgePrefs.put("profile.default_content_settings.popups",0);
edgePrefs.put("profile.default_content_setting_values.notifications",2);
edgePrefs.put("profile.default_content_setting_values.automatic_downloads" ,1);
edgePrefs.put("profile.content_settings.pattern_pairs.*,*.multiple-automatic-downloads",1);
EdgeOptions egdeOptions = new EdgeOptions();
egdeOptions.setExperimentalOption("prefs",edgePrefs);
WebDriverManager.edgedriver().setup();
driver = new EdgeDriver(egdeOptions);
break;
See code above for what was tried.
Please see screenshot
Read more here: Source link