If you are facing error like “Could not load extension from C:\Windows\Temp\scoped_dir23880_1457\internal. Loading of unpacked extensions is disabled by the administrator.” while launching chrome driver, then try one of the below options to fix it.

To automate various functions like window positioning, window sizing, etc, chrome automation extension is used by Chromedriver.  The popup ‘Loading of unpacked extensions..’ is displayed if your company admin policy blocks extensions.

To resolve it try any one of the below options-

1) Request your company admin to allow extensions by whitelisting chrome automaton extension.
2) Set the “useAutomationExtension” capability to false.

   ChromeOptions options = new ChromeOptions();
   options.AddAdditionalCapability(“useAutomationExtension”, false);
   WebDriver driver = new ChromeDriver(options);

This capability will help to NOT load Chrome Automation extension and the popup would not appear and for window reszing/position operations, use below workarounds:

1) for maximizing :
2) for changing window size (say to Dimension(800,600)):
3) for changing window position :