Loading of unpacked extensions is disabled by the administrator for EasyRepro

138 Views Asked by At

Whenever I try to run the EasyRepro test cases, I run into the error "Loading of unpacked extensions is disabled by the administrator". People are saying to set the useAutomationExtension capability to false. However I don't know where I would add the following line of code in EasyRepro:

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

There are 1 best solutions below

0
HJ1990 On BEST ANSWER

I fixed the error message by adding this line of code inside BroswerOptions.cs

        var options = new ChromeOptions();
        options.AddAdditionalCapability("useAutomationExtension", false);
        ChromeDriver driver = new ChromeDriver(options);