Unable to hide “Chrome is being controlled by automated software” infobar within Chrome v76

后端 未结 6 1179
逝去的感伤
逝去的感伤 2020-11-28 08:48

After updating Chrome to version 76, I cannot figure out how to hide the \"Chrome is being controlled by automated software...\" notification overriding some controls on the

6条回答
  •  -上瘾入骨i
    2020-11-28 09:34

    To hide "Chrome is being controlled by automated test software" infobar in C# for Chrome v76:

    var chromeOptions = new ChromeOptions();
    ...
    chromeOptions.AddAdditionalCapability("useAutomationExtension", false);
    chromeOptions.AddExcludedArgument("enable-automation");
    ...
    var driver = new ChromeDriver(ChromeDriverService.CreateDefaultService(), chromeOptions, commandTimeout);
    

提交回复
热议问题