Functionality for excluding switches is not fully supported yet, I guess it will be soon. But for now you can use experimental options to remove default switches:
ChromeOptions options = new ChromeOptions();
options.setExperimentalOptions("excludeSwitches",
Arrays.asList("disable-default-apps"));
driver = new ChromeDriver(options);
Pay attention to "disable-default-apps", there is no "--" preffix
I have found similar example for --ignore-certificate-errors
here and it works fine for me
пятница, 17 мая 2013 г., 10:55:07 UTC+3 пользователь Muhil R написал:
Hi All,
By default selenium (or) chromedriver.exe applies some switches ex:--disable-default-apps. How do i override this or remove this option while initializing the chrome driver?
Thanks,
mukil