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.
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
Pack your extension: go to chrome://extensions , check Developer mode and click Pack extension. Install the extension by dragging and dropping the . crx file into the chrome://extensions page. You'll get an "Unsupported extensions disabled" popup if you try restarting Chrome at this point.
addArguments("--disable-extensions"); // Start the chrome session WebDriver driver = new ChromeDriver(options);
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);
I cannot disable extensions because I'm developing & testing one.
What I'm doing to dismiss this popup is the following:
SendKeys(Control-N)
method). This predictably brings up the "Disable Developer Mode Extensions" popup after 3 seconds in the new window. driver.Close();
(which also closes this new window). Chrome takes that as "cancel", dismissing the popup, leaving the original window and tab.I find this necessary because the popup interferes with normal selenium browser interaction, like SendKeys, which I'm using to switch tabs and windows.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With