elcharrua elcharrua - 4 months ago 1107
Java Question

ChromeDriver - Disable developer mode extensions on automation

I'm having the following issue, when I'm running my automation tests, i keep getting the following alert Disable Developer Mode Extension.

enter image description here

Is there a way to disable this?. Since is making me fail some tests.

Thanks in advance

Answer

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

Try with this:

ChromeOptions options = new ChromeOptions();
options.addArguments("--disable-extensions");
driver = new ChromeDriver(options);