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
resolved in chrome 54 and chromedriver 2.25
This is because one of your extensions is running in developer mode. Go through your extension list and disable extensions one-by-one until you find the culprit(s).
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.
Try to add setProperty above ChromeDriver instance
As of Chromedriver v2.33, the correct way to avoid this message is to pass
load-extension
to theexcludeSwitches
argument of thechromeOptions
object. The following Java code should do the trick, although I haven't tested it, as I am running Python:As others have pointed out, the culprit is probably the Chrome Automation Extension, which is loaded automatically by Chromedriver when it launches Chrome.
Chromedriver v2.33 introduced the new switch to prevent the extensions from being loade:
I suspect that this solution does not require you to disable all extensions. You should still be able to manually load others.