Re: How to Override or Remove Default ChromeDriver/Chrome Switches?

504 views
Skip to first unread message

Tatyana Nazarenko

unread,
Nov 28, 2013, 10:46:12 AM11/28/13
to webd...@googlegroups.com
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
Reply all
Reply to author
Forward
0 new messages