We also met this issue Loading of unpacked extensions is disabled by the administrator
when we move from Win 7 to Win 10.
Due to company policy reason, IT admin disable load unpacked extension
on Win 10.
We did some search and found a solution say adding the Chrome Automation Extension
to Chrome Extension White List by modifying Windows Registry. We will get a long wait before approve by security department.
So we find another solution to disable Chrome to load that extension:
// this code for Protractor, if you use java/python, please change accordingly
capabilities: {
browserName: "chrome",
chromeOptions: {
// add this into chromOptions to disable load the extension
useAutomationExtension: false,
}
},
With above chromeOptions, eelow script to operate window size and take screenshot also work well:
browser.manage().window().setSize(600, 800);
browser.manage().window().maximize();
I did deep search, the window size/position, screenshot supported by that extension on earlier Chrome, but since Chrome 59 which support headless model, the window size/position, screenshot also supported by DevTool protocol.
So I think since Chrome 59, we no need that extension.
And you can open chrome://policy
in Chrome to check extension black/white/force list
