EasyRepro 的管理员禁止加载解压的扩展

Loading of unpacked extensions is disabled by the administrator for EasyRepro

每当我尝试运行 EasyRepro 测试用例时,我运行 进入错误"Loading of unpacked extensions is disabled by the administrator"。人们说将 useAutomationExtension 功能设置为 false。但是我不知道在 EasyRepro 中的什么位置添加以下代码行:

ChromeOptions options = new ChromeOptions();
options.setExperimentalOption("useAutomationExtension", false);
WebDriver driver = new ChromeDriver(options);

我通过在 BroswerOptions.cs

中添加这行代码修复了错误消息
        var options = new ChromeOptions();
        options.AddAdditionalCapability("useAutomationExtension", false);
        ChromeDriver driver = new ChromeDriver(options);