Since the latest release of chrome (34.0.1847.116) last week, I have been receiving the “Disable developer mode extensions" when running automated tests using watir-webdriver.
This seems to be the offensive extension but it doesn't make sense to me that this is a potentially hazardous extension given its used by the chromedriver.
Anyone that has found a fix for this, as i am unable to roll back to the previous version or find an installer for an older version to roll back to and this is playing havoc with my tests.
(In reply to Antony Hatchkins)
This is the current, literally official way to set Chrome policies: https://support.google.com/chrome/a/answer/187202?hl=en
Instructions for Windows (with my additions):
Once you're done with this, continue from step 5 of Antony Hatchkins' answer. After you have added the extension ID(s), you can check that the policy is working in Chrome by opening
chrome://policy
(search for ExtensionInstallWhitelist).While creating chrome driver, use option to disable it. Its working without any extensions.
Use following code snippet
I'm not sure if this is still a problem for people or not. However, I read through this post and several others and finally played around with this and was able to make it work in C# using this code. I derived it all from this post and possible some posts linked to this post.
I hope this helps, it certainly solved my problems in C# console application.
Using version 52.0.2743.116 m of Chrome Selenium 2.9 Server Driver
I was suffering from the same problem, and I tried the following:
A few things to note:
When I reopened Chrome, I got a popup that told me about the new packed extension, so I rebooted Chrome to see if it would do it again, and it did not.
I hope this solution worked!
Using selenium with Python, you start the driver with extensions disabled like this:
The popup 'Disable developer mode extensions' will not pop up.
The official way to disable the popup seems to be like this:
Pack your extension (
chrome://extensions/
, tick at 'Developer mode', hit 'Pack extension...') and install it via drag-and-dropping the.crx
file into thechrome://extensions
page.(You'll get an "Unsupported extensions disabled" popup, if you try restarting Chrome at this stage)
Then for Win7/8:
http://dl.google.com/dl/edgedl/chrome/policy/policy_templates.zip
[zip]\windows\admx\chrome.admx
toc:\windows\policydefinitions
[zip]\windows\admx\[yourlanguage]\chrome.adml
toc:\windows\policydefinitions\[yourlanguage]\chrome.adml
(notc:\windows\[yourlanguage]
)nmgnihglilniboicepgjclfiageofdfj
Start
>Run
, and typegpedit.msc
<ENTER>
User Configuration
>Administrative Templates
>Google Chrome
>Extensions
Configure extension installation whitelist
policyEnabled
, then clickShow...
OK
and restart ChromeThat's it!
As of July 2018, this approach no longer works: it seems Google has stopped honoring the "whitelist"
EDIT: As of 10/16/2018, this approach WORKS. (Chrome Version 69.0.3497.100 (Official Build) (64-bit))
1.Temporarily enable developer mode in chrome://extensions/
2.Uninstall the extension you installed (To be precise the extension that causes the popup) using the "Load unpacked".
3.Click on pack extension and enter the root directory of the files (put the extension files in a single folder/one folder per error causing extension) don't enter the private key file if you don't have it.
4.Click pack extension a .crx and .pem file would be created near the root directory of the extension. Install the extension using the crx file and keep the pem file safe (if you delete it or something goes wrong without it you can always repack the extension).
5.Then copy the crx installed extension ID to the whitelist and restart Chrome.
The popup should be gone.