ChromeDriver - Disable developer mode extensions pop up on Selenium WebDriver automation

elcharrua picture elcharrua · Apr 15, 2014 · Viewed 47.2k times · Source

I'm having the following issue: When I'm running my automation tests, I keep getting the following alert "Disable Developer Mode Extension" in Chrome.

enter image description here

Is there a way to remove/disable this?. It is a blocker for me as it is making me fail some tests.

Thanks in advance

Answer

Mauricio picture Mauricio · Apr 22, 2014

Did you try disabling the developer extensions with command line param?

Try with the following Selenium WebDriver java code:

System.setProperty("webdriver.chrome.driver", "D:\\chromedriver.exe");
ChromeOptions options = new ChromeOptions();
options.addArguments("--disable-extensions");
driver = new ChromeDriver(options);